Socket communication not working over LAN
I'm trying to write a program that sends song requests from one computer to another over the LAN. I was able to do it on one computer (open Host and Client on same computer and same IP), but it doesn't work between two computers. I have no clue what is wrong.
John McFlurfinPosted Oct 29, 2013, 9:30 PM
John McFlurfinPosted Oct 27, 2013, 10:43 AM
Jaganathan BantheswaranPosted Oct 27, 2013, 5:08 AM
The basic idea is,
Server should listen for ANY IP.
IPEndPoint(IPAddress.Any, portNo)
Clients should connect to Server's IP i.e if your Server [Host] is on IP 127.0.0.1 then the Client connection should be like.
IPEndPoint(IPAddress.Parse("your host ip"), hostPortNo);