How do I check which process is using port 1099?

3

From my java application, it gives me an error like this: enter image description here

I am using Windows XP. Could anyone give me any recommendations as how to figure out which process is using port 1099? My firewall is off and I don't have any antivirus programs that can be messing it up.

Thank you. It is very much appreciated.

Edit: From the suggestions below, do any of you have any ideas how to kill this process listening at port 1099? enter image description here

O_O

Posted 2011-10-18T20:32:15.173

Reputation: 1 473

FYI: 1099 is used for Java RMI so the process in question will almost certainly be java.exe or a java based app like eclipse.exe. – Chris Nava – 2011-10-20T15:47:58.253

Answers

5

Looking at the output for netstat -a -n -b should show you all connections and what application is using those ports.

Update Response: You can hit ctrl-shift-esc which brings up the windows task manager. Click on the processes tab and then go to View->Select Columns make sure PID is selected and hit OK. Then make sure the checkbox for Show processes from all users is selected. Then you can sort by that column and should be able to find your PID easily and you can always right click the process in question and select End Process or End Process Tree.

Just make sure you know what you are killing and that it isn't critical.

James

Posted 2011-10-18T20:32:15.173

Reputation: 166

Thanks for the tip. Please see above for updated question. Thank you again. – O_O – 2011-10-18T21:02:09.480

+1; You could also type tasklist | findstr <pid-here>, so you don't have to leave the command line. – Merlyn Morgan-Graham – 2011-10-20T09:27:11.583

2

netstat /ano will give you the PID of the process that is using each port.

Just for the sake of completeness as well, you can kill tasks from the command line via PID as well using the taskkill command.

Sabre

Posted 2011-10-18T20:32:15.173

Reputation: 161

Thanks for the tip. Please see above for updated question. Thanks again. – O_O – 2011-10-18T21:02:19.557