LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   network port (https://www.linuxquestions.org/questions/linux-newbie-8/network-port-4175473534/)

cdijack 08-15-2013 05:17 PM

network port
 
Hi. Beeing new to Linux, I need to find out what is associated to a particular port (say 10000). Which command will tell me?
Thank you

ShadowCat8 08-15-2013 06:19 PM

Greetings,

Well, if it's one of the standard IANA-assigned ports, you can simply do:
Code:

~ $ less /etc/services
which from my current file says it isn't currently assigned:
Code:

...<snip>...
sctp-tunneling  9899/tcp                        # SCTP TUNNELING
sctp-tunneling  9899/udp
domaintime      9909/tcp                        # domaintime
domaintime      9909/udp
amanda          10080/tcp                      # amanda backup services
amanda          10080/udp
...<snip>...

HTH. Let us know.

Doug G 08-15-2013 07:49 PM

You can find a complete list of well-known ports here too, if you don't happen to be on a linux machine with a local file copy

http://www.iana.org/assignments/serv...-numbers.xhtml

dt64 08-16-2013 04:00 AM

If you need to know, which programm or service is currently using a certain port on your machine you can use
Code:

netstat --tcp --udp --listening --program | grep <port number>
Here is some more info about this topic: http://www.garron.me/en/go2linux/whi...ning-port.html


All times are GMT -5. The time now is 11:48 AM.