CAsyncSocket Server - unable to connect using public IP
Posted on 2008-11-15
I created a server using CAsyncSocket. I am starting the server using the following code:
(m_serverSocket is a class derived from CAsyncSocket)
then I am connecting to it using CSocket using the following code:
(m_clientSocket is a class derived from CSocket)
It works fine for localhost, but I cant connect to it using my public IP.
The error I am getting is 10060, which is a timeout. It seems my server is never reached from outside.
First thing that came to my mind is the firewall, so I disabled both the windows and the router firewalls with no luck. Also, I am sure of my public IP since I get it directly from my router's interface and I have tried various port numbers, like 3111, 7000, 45111..
Thanks in advance..