This post will show you How to Check Whether Port Listening or Not?
If you are interested in learning, Request you to go through the below recommended tutorial.
DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
How to Check Whether Port Listening or Not?
If you are looking for the solution "How to check whether port is listening or not?" As a Linux admin, you will come to a situation to find which ports are listening or blocked in a server.Assume that you are looking to check whether the port 25 is listening or not.
You can use the command "netstat" to see the port 25 is listening to the IP address or not.
You can use the command "netstat" to see the port 25 is listening to the IP address or not.
#netstat -lnt | grep 25
And also use the command "iptables" to ensure the port is not filtered.
#iptables -nL | grep 25
If you see anything related to port 25, then the port is listening. If not its been blocked by firewall or the service belongs to port 25 (SMTP) is not running.
Hope this post helped to know How to Check Whether Port Listening or Not?
Related Content on Linux might be useful to you to improve your Linux Skills.
How to Configure IP Address on Ubuntu using Netplan
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
Keep practicing and have fun. Leave your comments if any.
Stay connected with us on social networking sites, Thank you.
0 Comments