Forum C# Unable to connect to port 8184 - Port already used

Unable to connect to port 8184 - Port already used

Postby prsolucoes » November 1st, 2012, 11:27 pm

Hi,

Im using a mac and mono Develop to make the PlayerIO serverside.

Everything is working fine, but after some time that the server in Open and Running, i cannot kill the process by mono develop or after killiling the process using commandline (kill -9 or killall) i cannot start the server again.

I got the error:

[20:25:22] Unable to listen with a socket on port 8184. The port might be in use by another process.
The development server can't run without being able to listen to port 8184.


What the process or what the workaround to make it works and close the application correctly?

I start the server using command line too to know if the problem is only with Mono Develop, but the problem happen, after some time that the Server is running, i cannot end the application using CONTROL-C, i need open another terminal instance and kill it, but the process is closed (top tool say it) and port is blocked.
prsolucoes
 
Posts: 47
Joined: March 18th, 2010, 3:20 pm

Re: Unable to connect to port 8184 - Port already used

Postby Benjaminsen » November 2nd, 2012, 11:20 am

The problem is Mono not correctly releasing the port listener when the server is stopped. (A reboot is required to fix this)
While I have not tested it myself, I hear that updating to the newest Mono release should fix it.

Persoanlly I run Visual Studio Express in a virtual windows machine.
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to C#