• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Java network programming..

SinNisTeR

Diamond Member
Ok, so I'm writing a simple socket app and I have an app that sits listening for a socket connection. When I run the app and open a command prompt and do "netstat -a" to see my connections I see that I have a listening TCP connection on the port I specified.. great, it works. I then proceed to adjust my code and I re-run the app.. I get an error message saying that the port is in use.. sure enough, the port isn't being released.. Anyone ever run into this issue?
 
Well.. I'm creating the ServerSocket in a new thread.. How would I go about closing it in a different thread?
 
Back
Top