tcp streams problem c#
When i try to connnect to a local IP everything goes wonderfully but as soon as i use a normal ip, like to connect to a friend开发者_StackOverflow of mine outside the lan it just doesn't work
It's most likely a combination of firewall and port forwarding. In addition to opening up ports on your firewall, you'll need to forward these ports on your friend's router. PortForward.com is a decent resource if you're unfamiliar with port forwarding.
My first guess would be that you may be running into a firewall issue - is there a firewall operating between you and your friend? If so, do you have exceptions for it?
I suggest you use Wireshark to analyse what's happening at the network level.
精彩评论