Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trace a particular IP and port

I have an app running on port 9100 on a remote server serving http pages. After I ssh into the server I can curl localhost 9100 and I receive the response.

However I am unable to access the same app from the browser using http://ip:9100

I am also unable to telnet from my local PC. How do I debug it? Is there a way to traceroute a particular IP and port combination, to see where it is being blocked?

Any linux tools / commands / utilities will be appreciated.

Thanks, Murtaza

like image 332
murtaza52 Avatar asked Jun 12 '12 11:06

murtaza52


People also ask

Can you traceroute a specific port?

A TCP "traceroute" run to a domain on a specific port should give a good idea as to where the traffic is being dropped. A traceroute simply shows the 'path' on the Internet between the host where the traceroute is run and the destination that's specified as well as where, if anywhere, the route is failing to complete.

How do I ping an IP and port?

Ping a Specific Port Using Telnet 1. To check whether telnet is already installed, open a terminal window and enter telnet . The <address> syntax is the domain or the IP address of the host, while <port_number> is the port you want to ping. If the port is open, telnet establishes a connection.


1 Answers

You can use the default traceroute command for this purpose, then there will be nothing to install.

traceroute -T -p 9100 <IP address/hostname> 

The -T argument is required so that the TCP protocol is used instead of UDP.

In the rare case when traceroute isn't available, you can also use ncat.

nc -Czvw 5 <IP address/hostname> 9100 
like image 88
EternalHour Avatar answered Oct 04 '22 11:10

EternalHour