Hello, I'm trying to send some text between a server and a client. It works fine when I use it on 1 machine, but when I attempt to do send text between Computer 1 and Computer 2, it tells me this;
No connection could be made because the target machine actively refused it.
Server Connect code:
Code:
LstSck = new TcpListener(IPAddress.Any, 12345);
LstSck.Start();
Client Connect code:
Code:
IPAddress localAddr = IPAddress.Parse("127.0.0.1");
int Port = 12345;
IPEndPoint endPoint = new IPEndPoint(localAddr, port);
I tried changing the IP in the client, but it didn't help.
Yes, this is one of my first attempts at Socket programming, and yes, I fail at it.
- Krillere