I'm working on a client/server and I'm having trouble getting them to communicate over the internet. If I'm running them on the same computer, it works fine if I have the client connect to localhost
or to my network address (192.168.1...
), but it doesn't work (Error 10061: connection actively refused) if I have the client connect to my external address (99.141...
). I've tried turning my firewall off and I've forwarded the ports on the router, so I don't really know what else to check. The server is made with the TcpListener
class and the client is made with the TcpClient
class. The server is bound to IPAddress::Any
.
I checked netstat
and the server is broadcasting on the correct port, I just can't connect to it non-locally.