Got feedback or spotted a mistake?

Leave a comment at the end of this page or email

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Way 1: 

Using telnet command :

Syntax : telnet <Host_name>  <port_no>

telnet 80

Use the above command from outside the server machine. If port 80 is open. "Connected to" message will be displayed on the terminal.

Way 2 :

Listing down iptables rules. Below is the command to list iptables rules :

sudo iptables -L

Check if there is any rule set for port 80, in the same row if under Target column DROP option is present then port 80 is blocked.

Way 3 :

The below commands will display open ports of the server.

Operating systemcommand
Ubuntusudo ufw status
CentOS / RHELsudo firewall-cmd --list-all

  • No labels