slonkar
slonkar

Reputation: 4085

Socket Programming with stream sockets over local area network

I am learning inter-process communication. I want to create server that can listen to client distributed over actual local area network. I have IP address as well as symbolic name of those machines. I can implement sever and client on single machine but I don't know how to do same on different machines on network. Can anyone direct me to appropriate resources or tell me how to do it ?

Thanks

Upvotes: 1

Views: 1016

Answers (1)

Klas Lindbäck
Klas Lindbäck

Reputation: 33273

It's the same. The only difference is that you need to use the server ip address instead of the local address when you connect the client socket.

Upvotes: 2

Related Questions