Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Program runs as localhost and not *
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CobraNMU
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2004
Posts: 76
Location: Naperville, IL

PostPosted: Mon Dec 05, 2005 4:44 am    Post subject: Program runs as localhost and not * Reply with quote

I had to redo my server from a stage 3, and am having a small problem getting some of my programs for my networking class to work. I have a server program that runs on port 9000 and i've created a client program that can run from another machine. Using TCP/IP, its able to communication and send data back and forth.

Well, long story short, when the client attempts to connect to my server, it hangs and the server doesn't show any signs of connections. I know the client is okay, because if I run the server program on other machines, it works okay.

I ran netstat -lp and i get
Code:
tcp        0      0 localhost:9000          *:*                     LISTEN      16070/atm_server


I don't know if that localhost is effecting anything, but I have a feeing it is. Everything else seems to run as *:ftp, etc.

Any thoughts on how to get this working?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Dec 05, 2005 5:01 am    Post subject: Reply with quote

Your server program will only respond to localhost, rather than "*". HTH.
Back to top
View user's profile Send private message
CobraNMU
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2004
Posts: 76
Location: Naperville, IL

PostPosted: Mon Dec 05, 2005 4:52 pm    Post subject: Reply with quote

I noticed this. I wanted to know how I can fix that. I need to be able to run programs so that other computers running the clients can access the server on the specified port.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum