View previous topic :: View next topic |
Author |
Message |
CobraNMU Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Apr 2004 Posts: 76 Location: Naperville, IL
|
Posted: Mon Dec 05, 2005 4:44 am Post subject: Program runs as localhost and not * |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
PaulBredbury Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/15669254994381f44a81f83.jpg)
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Mon Dec 05, 2005 5:01 am Post subject: |
|
|
Your server program will only respond to localhost, rather than "*". HTH. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
CobraNMU Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Apr 2004 Posts: 76 Location: Naperville, IL
|
Posted: Mon Dec 05, 2005 4:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|