I'm trying to write a server (and client) application that will run in the following way:
Say you and I both have our machines connected to the same router in the same house.
I have my server running on my machine, and your machine connects to my server and say for example transfers some files.
I have managed to get this running on the same machine (ie server and client are both on one machine), however I have not been able to connect to the server on my machine from any other machine in the house.
Here's a code snippet from my server application:
this.tcpListener = new TcpListener(IPAddress.Any, 3000);
this.listenThread = new Thread(new ThreadStart(ListenForClients));
this.listenThread.Start();
And here is my client application:
IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3000);
Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Any help is appreciated. Thank you all in advance.