How to find what ports a program uses

Associate
Joined
25 Jul 2003
Posts
1,980
I'm trying to find out what ports a program uses. Basically my college have a firewall which blocks all ports not on a whitelist. They will add ports to the whitelist if I ask, but I need to find out what ports the program I want unblocking uses.

Any ideas?

p.s: The program is pokerroom. They have ports listed on their website, but I'm almost certain that it requires another port to log in, since all the ports they have listed are unblocked already. Its definitely firewall related, since it stopped working the day the new one was installed. Either that or its using a strange protocol or something?
 
You could just open a command prompt and do

netstat -p tcp -o

Match up the process ID to the application in task manager and you have it right there wihout installing any extra software.

If it connects to random dynamic UDP ports though then you're screwed anyway.
 
tcpview is just a single EXE, there's no installer. Netstat is fine but most people would rather use tcpview.
 
Thanks. Using TCP view I get:

PokerRoom.exe:600 TCP olly:2560 66.212.235.6:https CLOSE_WAIT
PokerRoom.exe:600 TCP olly:2561 66.212.235.6:https CLOSE_WAIT
PokerRoom.exe:600 TCP olly:2601 66.212.235.6:5750 SYN_SENT

I'm a little confused by this because I have been told that ports 5750 and 443 are both open on the college firewall. Is there any way I can test this? After login fails it tries on port 5700 instead, but this also fails. Any ideas?
 
Back
Top Bottom