I have a very strange problem in developing MFC programming.
I used connect() function in winsock.h in order to connect to my server with specified port.
Everything is Okay in normal case, but when I used the VPN, then I could not connect to my server.
GetLastError() was returned by 10060 – timed out error.
After that, I used ping command to my server – that was Okay and the connection status was very good – at most 400ms.
So, I used telnet command to my server with the port – I could see the timed out error.
After I disconnected the VPN, telenet worked well.
It’s strange for me…
How can I solve this?
For more info : I’m using PacketiX and the port is 17006.
When I use 80 port, everything is okay.
Maybe PacketiX blocks 17006 port.