TCP-IP Host name how to configure

Omar Amalfi Camacho
21 de Noviembre del 2011
I working on a tcp-ip proyect in my TcpClient proyect I have this code:

TcpClient socketForServer = new TcpClient("localhost", 3600);

And in the TcpServer proyect I have this code:

TcpListener tcpListener = new TcpListener(IPAddress.Any, 3600);

Working on "localhost" there is no problem. But when I execute the TcpClient on another machine outside my network replacing localhost by my IP extern, does not work.

The router redirects all that comes through the port 3600 to my machine.

I dont know what I doing wrong, I need help please.