Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Oct 20 '11 at 9:24

This question came from our site for professional and enthusiast programmers.

    
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 Oct 20 '11 at 15:47
add comment

2 Answers

up vote 4 down vote accepted

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.

share|improve this answer
    
Thanks for the tip. Please see above for updated question. Thank you again. –  O_O Oct 18 '11 at 21:02
    
Nice.. thank you. –  O_O Oct 18 '11 at 21:07
    
+1; You could also type tasklist | findstr <pid-here>, so you don't have to leave the command line. –  Merlyn Morgan-Graham Oct 20 '11 at 9:27
add comment

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.

share|improve this answer
    
Thanks for the tip. Please see above for updated question. Thanks again. –  O_O Oct 18 '11 at 21:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.