• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find a PORT is occupied or not?  RSS feed

 
Mike Jeya
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to run a server on port 81.However it says port number 81 is occupied. How do I find out using netstat command whether 81 is occupied or not? please help me with exact syntax. Your help is appreciated.
 
Tim Holloway
Saloon Keeper
Posts: 18799
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
netstat -lnp

The process ID and program name may be blank. In that case, I think it's being monitored by the superserver (inetd or xinetd) and not actually assigned to an app.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!