Hi. I made a program for tcp chat but I'm really confused with which IP to use. I can send a message to myself by sending a message to a local IP such as 127.0.0.1 or 192.168.1.100. When I tried with my external IP (the one from whatsmyip.com) I get a socket exception: The requested address is not valid in its context. In order to chat to a friend what IP does he have to give me, and if it's the external how do I get the program to work?
moni94
0
Junior Poster in Training
Recommended Answers
Jump to PostI think you have to give the ip your server is running on to your friend. Or if he is the one running the server, then you have to use his ip to connect to that server. Hope this helps.
By the way, you can also refer to source …
Jump to PostJust try using the external ip.
All 6 Replies
Mattan360
0
Newbie Poster
moni94
0
Junior Poster in Training
SanjitVigneshS
36
Newbie Poster
moni94
0
Junior Poster in Training
SanjitVigneshS
36
Newbie Poster
Mattan360
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.