LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2017, 04:10 AM   #1
Volcano
Member
 
Registered: Sep 2005
Posts: 221

Rep: Reputation: 15
bind address is in use


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 ?
Attached Thumbnails
Click image for larger version

Name:	address-bind.png
Views:	9
Size:	11.4 KB
ID:	26550  

Last edited by Volcano; 12-18-2017 at 04:24 AM.
 
Old 12-18-2017, 05:38 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Use netstat command, example with filtered output
Code:
netstat -apn | grep -i 'tcp.*listen'
 
Old 12-18-2017, 11:49 AM   #3
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,250

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Volcano View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listen jsaravana87 Linux - Server 1 11-25-2011 11:45 AM
apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 spedax Linux - Server 1 09-22-2011 12:47 PM
Program to assign globa lIPv6 address and bind() to the previously assigned address. mwnn Linux - Networking 2 10-07-2010 03:29 AM
Bind IP address with MAC address in squid 3 ( Source baced) gulnawaz Linux - Server 3 01-14-2010 02:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration