Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved by using telnet] cannot receive data using netcat
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
andyandrews35
n00b
n00b


Joined: 19 Mar 2006
Posts: 68

PostPosted: Thu Jul 05, 2007 3:25 am    Post subject: [Solved by using telnet] cannot receive data using netcat Reply with quote

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?
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