LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bind address is in use (https://www.linuxquestions.org/questions/linux-newbie-8/bind-address-is-in-use-4175619809/)

Volcano 12-18-2017 03:10 AM

bind address is in use
 
1 Attachment(s)
How to find which port is in use ? screenshot attached.

i'm using 3 ports here 80 , 443 , 22

How do you identify EASILY which port is in use ?

keefaz 12-18-2017 04:38 AM

Use netstat command, example with filtered output
Code:

netstat -apn | grep -i 'tcp.*listen'

scasey 12-18-2017 10:49 AM

Quote:

Originally Posted by Volcano (Post 5794461)
How to find which port is in use ? screenshot attached.

i'm using 3 ports here 80 , 443 , 22

How do you identify EASILY which port is in use ?

I use
Code:

netstat -tnlp
to display ports on which a process is listening (so, are "in use")
but I note that all three of those ports are "normally" in use:
80 for httpd
443 for httpd (secure)
22 for sshd


All times are GMT -5. The time now is 04:50 PM.