Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2007, 09:01 AM
aflaba aflaba is offline
Senior Member
 
Join Date: Nov 2004
Location: Sweden
Posts: 1,943
Default Can I find out which ports an application is using?

Is there any way I can find out which ports an application is using or has used? Or rather, is there any way that I as a computer layman can find that out?
Reply With Quote
  #2  
Old 06-23-2007, 09:13 AM
sonneti sonneti is offline
Senior Member
 
Join Date: Feb 2006
Posts: 1,446
Default Re: Can I find out which ports an application is using?

Open a cmd box (start menu / run) and type in

cmd

when the cmd box opens type

netstat -ao

This will give you the port type, local port, foreign IP address, the stats its in + a PID Number.

Hit CTRL + ALT + DEL to bring up the task manager, you should see a list of all the processes running on your computer.. click on the view menu and select colums click the box for PID and click ok.

Now you can match up the PID's to see what is connecting to what [img]/images/graemlins/laugh.gif[/img]
Reply With Quote
  #3  
Old 06-23-2007, 10:10 AM
ger664 ger664 is offline
Senior Member
 
Join Date: Nov 2005
Posts: 1,707
Default Re: Can I find out which ports an application is using?

Checkout www.sysinternals.com. There is a whole host of useful utilities here. They where so good and the author of the site know more about the inner workings of window that Microsoft made him an offer he could not refuse.
Reply With Quote
  #4  
Old 06-23-2007, 03:14 PM
DeadlyGambit DeadlyGambit is offline
Senior Member
 
Join Date: Jul 2005
Posts: 122
Default Re: Can I find out which ports an application is using?

sonneti:

I tried the netstat/task manager thing just for the hell of it but it doesn't seem to work. I mean, some of the PID's match up but some aren't even listed in netstat. For example, according to TM "explorer.exe" has a PID of 3956, however that PID # isn't even listed in the netstat output. There are also a few others like that. Whats up?

-DG
Reply With Quote
  #5  
Old 06-23-2007, 03:38 PM
nuclear500 nuclear500 is offline
Senior Member
 
Join Date: Aug 2004
Location: Madison, WI
Posts: 1,065
Default Re: Can I find out which ports an application is using?

Because explorer doesn't listen to TCP/IP traffic and if it did I'd freak out.

Download TCPView from Microsoft Sysinternals as the other poster mentioned.

http://www.microsoft.com/technet/sys...g/TcpView.mspx
Reply With Quote
  #6  
Old 06-23-2007, 03:40 PM
nuclear500 nuclear500 is offline
Senior Member
 
Join Date: Aug 2004
Location: Madison, WI
Posts: 1,065
Default Re: Can I find out which ports an application is using?

It was inevitable it would happen - a crapload of MS KB articles specifically mentioned using sysinternals tools to diagnose problems.

The marriage was bound to happen - plus the sysinternals tools should only become better simply because he now has official access to kernel API's.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.