Jump to content

How to see which programs use which port? (SOLVED)


Sapphiron
 Share

Recommended Posts

I've got my own application which I need to run on port 8090. the problem is that that port seems to be in use.

 

How can I find out what program it is, so I can change it's port

 

O, I'm using mandrake 10.0 official

Edited by Sapphiron
Link to comment
Share on other sites

  • 2 weeks later...

so i have all this stuff running >> i know that the webserver is on port 80, but what are all the rest!

 

tcp 0 0 127.0.0.1:32768 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:997 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN -

Edited by n00i3
Link to comment
Share on other sites

so i have all this stuff running >> i know that the webserver is on port 80, but what are all the rest!

according netstat man page:

--numeric , -n
      Show numerical addresses instead of trying to determine symbolic host, port or user names.

so instead of 'netstat -pant' run 'netstat -pat' and you'll get the names of the used ports.

 

more on "man netstat "

Link to comment
Share on other sites

the file services in /etc tell you what runs on what port. (default anyway)

 

anyone know where to change apache to run on port 5100 instead of port 80 is?

 

i changed the port in services but there must be an apache file over riding it.

 

:help:

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...