Test connectivity to IP/port


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Test connectivity to IP/port
# 1  
Old 07-31-2013
Test connectivity to IP/port

I want to test the connectivity to an IP with Port number = xxxx.
I only know telnet can do it. For example, telnet <IP> <port>.
But I don't have telnet installed (no package) on my Red Hat Linux server.

I searched the Internet and realized that I will need either the installation media which has the telnet-server or telnet packages, or use the up2date utility along with your RHN subscription to download the package. It appears to me it is not easy to get the simple thing installed as I don't have the media and the subscription myself. Shouldn't the package be open for free download somewhere on the Internet? Thanks.
# 2  
Old 07-31-2013
Red Hat doesn't make precompiled supported packages available for free. The source code, as you mentioned is free... and so you can get that. But you'd have to have the compiler/tools installed already and possibly some other dependencies in order to build from the source rpm.

For the source rpms, start here:
Index of /pub/redhat/linux/enterprise

More specifically, for telnet on RHEL 6:
http://ftp.redhat.com/pub/redhat/lin...47.el6.src.rpm
# 3  
Old 07-31-2013
A number of things that accept a port number like ssh or ftp can be used, but then it becomes a question of what is the expected behavior when you connect to the servers socket. I am guessing you might be trying to work through firewall issues. If so, then it helps to also be on the server side (if possible) and looking to see that the daemon is listening and if you see your client ip in the servers socket table (netstat -an). If you're doing NATting that would make it a little more difficult to see if the server serviced the client request but not impossible. It would then be a matter of counting connections. Try ftp or ssh to the port in question, what type of daemon are you connecting to?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Test multiple IP:Port servers

Hello, I am pretty unskilled in bash and I need some script and my skills ale limited (yet) I am learning but situation now needs some more skills. is there possibility to simply check IP address with ports from csv file? My csv has hundred of IPs in this format ... (9 Replies)
Discussion started by: Keagan
9 Replies

2. UNIX for Dummies Questions & Answers

Shell Script to test telnet connection using port

Hello, I need to test telnet connections using port number for few hosts. Could you please help me? Thanks !! (1 Reply)
Discussion started by: skhichi
1 Replies

3. AIX

telnet to test connectivity

From a Windows command prompt, when I want to test whether an IP and port is open to a connection I can use telnet: telnet 1.2.3.4 5050 ..tests whether I can connect to port 50 on host 1.2.3.4. What is the correct context to do a similar test from an AIX console? Thanks! (1 Reply)
Discussion started by: landog
1 Replies

4. Programming

Using socket to test a TCP port

Hello, I'm trying to write a small c application to test a tcp port. This works fine for the most part but the default timeout on the connect is very long. I have been reading many posts but and it looks like I need to set the socket to be non-blocking and poll for a result. I have been totally... (2 Replies)
Discussion started by: tjones1105
2 Replies

5. Shell Programming and Scripting

Help with connectivity test using shell script

I want to test connectivity between different servers with my server using information as IP and port only. I have Name,IP List and port in one file. Please help how i can test connectivity is successful or not? File format will be: Name1,127.0.0.1,80 Name2,127.0.0.2,8080 Output could be ... (1 Reply)
Discussion started by: poweroflinux
1 Replies

6. Solaris

How i test the UDP port is working?

Hi anybody know how to test out the UDP port working? cos UDP cannot use telnet to test... Sumemr (2 Replies)
Discussion started by: summerpeh
2 Replies

7. Linux

Linux serial port connectivity help needed

Hai I am newbie to linux and I like know how can we connect linux with unix dump terminal. another thing is that whether I can get graphics in serial port connection using hyperterminal from windows. rgds sunil (2 Replies)
Discussion started by: sun
2 Replies
Login or Register to Ask a Question