andyandrews35 n00b
Joined: 19 Mar 2006 Posts: 68
|
Posted: Thu Jul 05, 2007 3:25 am Post subject: [Solved by using telnet] cannot receive data using netcat |
|
|
Hey there,
I am experimenting with python twisted network programming. On a another host on my lan, I have a simple echo application running, which listens on port 5001. It should repeat anything I type, prefixed by "You said:"
From my gentoo client, I want to connect to and test the service. I tried using netcat (nc) but the service doesn't work as desired - it doesn't seem to send me back any data. However I see the connection established on the server.
If I use a simple Python-based client, however, everything works right. As so:
Code: |
/root/python>python dataforward.py 192.168.0.104 5001
Connected to server. Press ctrl-C to close connection.
Are you there?
You said: Are you there?
Well, good bye then!
You said: Well, good bye then!
quit
Goodbye.
|
But when I use nc, looks like this:
Code: |
/root/python>nc -v 192.168.0.104 5001
192.168.0.104: inverse host lookup failed:
(UNKNOWN) [192.168.0.104] 5001 (?) open
Are you there?
Well, good bye then!
|
Any ideas what is going on? |
|