UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C
  • » ip problem need heeeelp help over here...

#1 2009-11-24 12:32 AM

flashback_007
Member
Registered: 2009-11-23
Posts: 11

Re: ip problem need heeeelp help over here...

:confused:


When i use local ip as 127.0.0.1 or the routers ip which is 192.168.0.1 than everything is fine but when i try to use my real ip than my server waits forever
but my command line

              ip                 port  string
client.exe 80.152.bla.bla 7777 hello_world

but when i set my ip to 127.0.0.1 or 192.168.0.1 it works

so anyone here?????


server.exe waits & will accept anything thats comming to my ip but it just wont when i use my real ip & there is no firewall.

am i doing something wrong in my code???:rolleyes:

Offline

#2 2009-11-24 07:30 AM

jfriesne
Administrator
From: California
Registered: 2005-07-06
Posts: 348
Website

Re: ip problem need heeeelp help over here...

It could be a problem with your networking setup.  Try using 'ping' to ping the problem IP address and see if it gets any response... if not, then it's your network configuration that has a problem.

If your client program is using TCP to connect to the server, then another trick to test the network is to run telnet instead of your client program, and see if telnet can connect to the server at the same IP address and port:

   telnet 80.152.bla.blah 7777

If telnet can't connect, then your TCP client program won't be able to either.

Offline

#3 2009-11-24 03:04 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: ip problem need heeeelp help over here...

Offline

#4 2009-11-27 03:45 PM

flashback_007
Member
Registered: 2009-11-23
Posts: 11

Re: ip problem need heeeelp help over here...

RobSeace + jfriesne thanks guys & sorry for the delay i was away from home & still is but will be back to try or play with my routers settings saturday..

Offline

  • Index
  • » C
  • » ip problem need heeeelp help over here...

Board footer

Powered by FluxBB