login about faq

I would like to know which TCP ports are in use by a specific application. How do I do that?

asked Dec 14 '10 at 20:17

SSH%20KB's gravatar image

SSH KB ♦
509249246237

edited Dec 22 '10 at 06:25


Often the fastest way of finding the TCP port numbers is the application's documentation. One way of finding out the TCP port numbers is using the netstat command available in all supported Windows platforms. The procedure starts with opening a plain text connection with the application to be tunneled and examining the port numbers with netstat command.

Steps ..

  1. Connect to the server host with an application
  2. Open the command prompt and type netstat -p TCP -n. This will list all open TCP connections.
  3. Look for TCP connections which have the destinations host's IP address in the "Foreign Address" columns. Write down the TCP port numbers.

For example, examining FTP connection to 10.1.60.67 during a data transfer produces following output:

TCP 10.1.52.41:1354 10.1.60.67:21 ESTABLISHED TCP 10.1.52.41:1360 10.1.60.67:20 ESTABLISHED

There are a number of other windows tools such as tcpview from Microsoft that will show the same information graphically

link

answered Dec 14 '10 at 20:18

SSH%20KB's gravatar image

SSH KB ♦
509249246237

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×2

Asked: Dec 14 '10 at 20:17

Seen: 1,270 times

Last updated: Dec 22 '10 at 06:25

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.