Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This is what I tried,but seems not working :

[root@ ~]# netstat -a|grep 48772
udp        0      0 *:48772                     *:*                                     
[root@ ~]# telnet localhost 48772
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can use netcat instead:

nc -u localhost 48772

share|improve this answer

You need to use netcat instead, telnet only supports tcp. Something like this will work:

$ nc -u localhost 48772

netcat is installed by default on most modern linux machines (assuming that's what you have).

Also for completeness sake I want to point out that there's another tool called socat which describes itself as 'netcat++'. Might be a good thing to check out. In general however netcat will do what you need just fine.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.