Hi everyone,
I'm writing, what I thought a relatively simple, client/server network application. All was working great until I have tried to get that to function over the extranet. I can't find a simple and coherent explanation as to what's not working and how to fix it so I though I may ask you for help. My code looks as shown below, I have a router, I have turned off all the firewalls, I have enabled port mapping to my local IP address and I still can't connect? I'm guessing I need some sort of SOCKS server/client (even though I thought with firewalls down I would not need that). Can anyone give me some explanation as to what should I do to get that going on the extranet.
Thank you,
Radek
... Server Side ....
IPAddress ^ myIP = IPAddress::Parse("192.168.2.3"); //local IP
IPEndPoint ^ ep = gcnew IPEndPoint( myIP, 20000 );
listenSocket->Bind( ep );
listenSocket->Listen(10);
listenSocket->BeginAccept(gcnew AsyncCallback(&Form1::OnClientConnect), nullptr);
... Client Side ...
mySocket = gcnew Socket( AddressFamily::InterNetwork, SocketType::Stream, ProtocolType::Tcp );
IPEndPoint ^ ep = gcnew IPEndPoint( IPAddress::Parse(“214.112.115.143), Int32::Parse(“20000”) ); //router IP
mySocket->Connect(ep);