Application Port Number
Written by Josh Lyon   
Tuesday, 16 January 2007 12:31

I was trying to connect to Google talk at work the other day via a third-party IM client called Miranda.  I downloaded a Google protocol (which actually runs on Jabber) but I couldn't get it to connect with the standard settings.  I figured it might be because my company has a firewall that blocks most ports, so I downloaded the official google talk client to see if it would work.

It went through a couple iterations of trying to connect to the server... and then... SUCCESS!  So why could it connect and my local client wouldn't?  As I assumed it was using a different port to connect.  Here's what I did to find out what port the application was running on.

I'll start with a high-level overview that power-users should be able to understand easily.  Then I'll break it down in a little more detail with the detailed steps needed to find out which port the application is running on.

High-level Overview: 

1. Open the Task Manager and find the PID for googletalk.exe 

2. Open the command prompt and run the " netstat -o -n" command

3. Find the PID in command prompt and find out which port it's running on. 

 

Detailed Steps

1. Press Ctl+Alt+Del to open the Task Manager (on some systems you may have to click the Task Manager button)

2.  In Task Manager, click View > Select Columns

3. Make sure the PID (Process Identifier) checkbox is checked and press OK

4.  Click the Processes tab, then scroll through the list and find the application you are looking for. Make note of the PID next to it.

5. Open command prompt: clcik Start > then click Run > type in "CMD" and press enter (a black command prompt should open)

6. Type in " netstat -o -n" and press enter*

*You can also add "-a" to the command to have it show more port information (all applications and listening ports)

7. Find the item in the list that has the same PID as you noted above. 

8. To find the port, look at the under the Foreign Address column and make note of the number after the colon.*

*This is typically called a socket and is in the format IP.add.re.ss:portNumber.  For Google talk this was 72.14.253.125:443 - meaning that the port number was 443 (which happens to be the default port for SSL connections).

Comments (12)

JBoss Port
0
I tried this and found that the JBoss Server is having a PID 3736. But no process with this ID is listed in the Command Window. I ntried with -a option also. There may be more applications facing the same issue. So how do we find ports of such applications?
Sreesanth TN , March 14, 2008
BhaskarVivin
0
Thanks man, this helped me a lot. thanks alot
Bhaskar Vivin , May 10, 2008
NA
0
I have been searching for (a couple hours so far) a simple explanation on how to find a port address and this is it! I will be trying this soon on my PC which is at a very remote location. thanks for your time
SHall , June 04, 2008
For local aplication
0
Thank you very much. It was very usefull.
If you want to search the port for an local aplication like sql server you should write
netstat -a -o
Adrian , July 22, 2008
Glad to Help
0
I'm glad I could help all of you who have posted comments (and those of you that haven't). I appreciate seeing the comments, so if this blog post has helped please leave a comment.
Josh Lyon , July 22, 2008
truck driver
0
am a class "A" hasmat driver seeking for acarrer
marvin osoy , September 29, 2008
...
0
Really helpfulsmilies/grin.gif
MG , May 08, 2009
golgotha
0
no one can judge me smilies/smiley.gif
kumar a n , July 23, 2009
...
0
Thanks a lot..it is really usefull tips
Alok , December 07, 2009
...
0
This is really quite useful. Thank You.
Dadala Lavanya , February 10, 2010
...
0
Good Information...
Praveen , April 29, 2010
thanks..
0
cool, very good information.. :-) smilies/smiley.gifsmilies/smiley.gifsmilies/smiley.gif
alok , July 02, 2010

Write comment

smaller | bigger
security image
Write the displayed characters

busy