Net.Sockets - Internet to LAN Connection Exception...
-
This answer has probably already been answered but after thorough searching I couldn't quite find what I was looking for. Anywayz the problem is as follows.... I have created a server and client program connecting through the use of sockets... Now the client will connect with the server (which is already running) and send a file... After quite some testing on same-PC basis I tried it across the internet. A friend of mine is connected in a LAN having her IP like this: 192.168.2.102 . Now, when I run the server and the friend runs the client it all works fine, but not the other way round! Obviously asking my client to connect to the friend's server 192.168.2.102 is useless since it's only an internal IP. After revealing the friend's external IP from whatismyip.com it seemed like I could solve the problem, but the server refuses to connect with the error below: Unhandled exception occurred: The requested address is not valid in its context Is there a way to solve this error?:confused: Please help!
-
This answer has probably already been answered but after thorough searching I couldn't quite find what I was looking for. Anywayz the problem is as follows.... I have created a server and client program connecting through the use of sockets... Now the client will connect with the server (which is already running) and send a file... After quite some testing on same-PC basis I tried it across the internet. A friend of mine is connected in a LAN having her IP like this: 192.168.2.102 . Now, when I run the server and the friend runs the client it all works fine, but not the other way round! Obviously asking my client to connect to the friend's server 192.168.2.102 is useless since it's only an internal IP. After revealing the friend's external IP from whatismyip.com it seemed like I could solve the problem, but the server refuses to connect with the error below: Unhandled exception occurred: The requested address is not valid in its context Is there a way to solve this error?:confused: Please help!
Well, i only did this once and connected from the web, to my home network. Then to get it to connect to the right PC i had to put port forwarding on the router to send the connection to the right place. So its a bit of a pain connecting to a computer from outside the local network. The best answer i could find to the problem was to have a web server that both PC's connected to and then have the web server connected them.
My current favourite word is: Nipple!
-SK Genius