Support Forums
Can't connect to program across network - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Programming with C++ (https://www.supportforums.net/forumdisplay.php?fid=20)
+---- Thread: Can't connect to program across network (/showthread.php?tid=4381)



Can't connect to program across network - J4P4NM4N - 01-16-2010

This probably belongs here, but possibly in the Network section . . . not sure yet.

I wrote a small C++ program that uses sockets. You can either use the client version and connect [from the same PC or another one on the LAN], or you can Telnet or PuTTY to the "server."

The client sends data, and the server [for now] just outputs what the client says to the screen.

I can connect from another PC on the same LAN, but I cannot connect from anywhere else on the Internet. I opened the port on my router, and http://www.canyouseeme.org verifies that the port is open, but when I try to connect to my WAN IP it gives me an error about not being able to bind to the socket (basically, it can't connect).

If anyone would like to help me troubleshoot this [especially if you've done something like this before], please let me know! [Reply in the thread first . . . I generally don't check PMs]