I wrote simple echo service. It works perfectly when i am using localhost but problem is when i want to connect to my server using another machine which uses different IP address. Client program don't even want to connect. He is never asking for message so problem is with connection but i don't understand why. I checked ports using netstat command and they were an open. Can you help me ?
That code shows you using the localhost for both client and server, which you say works fine. If you want help you need to show us the code that isn't working.
Joined: Jun 08, 2011
I forgot change it in my example. I using the same code when i want to connect from another machine but off course in the server and client instead localhost i am using my ip address.
Joined: Aug 05, 2005
Dawid Skrzypczynski wrote:I forgot change it in my example. I using the same code when i want to connect from another machine but off course in the server and client instead localhost i am using my ip address.
Right. But have you got the format of the IP address correct ? Probably you have, but if people here assume you have when you haven't then we are just wasting time looking for other possible causes. If you had posted the actual code you are using in the first place and the IP address format is correct, we could be already investigating those other reasons.