Forum C# Unable to connect to port 8184 when starting server

Unable to connect to port 8184 when starting server

Postby Quindor » November 25th, 2010, 2:19 pm

Good day,

I've been trying both the original Nonoba API and Player.IO to make an attempt at a multiplayer game. With Player.IO I can't even run the sample games because right at the start I get the following error:
"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".
I'm running Vista 32 bit and opened the solution with Visual C# 2008 Express, Visual C# 2010 Express and even rebuilt the solution under Visual Studio 2005, but the result is the same.
However I don't think that Visual Studio is the culprit since I get the error even by double-clicking the Player.IO Development Server.exe file.

Can somebody help me?
Quindor
 
Posts: 3
Joined: November 23rd, 2010, 4:38 pm

Re: Unable to connect to port 8184 when starting server

Postby Quindor » November 25th, 2010, 2:33 pm

by the way, I already made sure that no other connections were active on port 8184. I ran netstat -an | find /i "listening" a few times:

Visual Studio open, development server not running:
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:912 0.0.0.0:0 LISTENING
TCP 0.0.0.0:990 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49155 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49156 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5679 0.0.0.0:0 LISTENING
TCP 127.0.0.1:7438 0.0.0.0:0 LISTENING
TCP 127.0.0.1:27015 0.0.0.0:0 LISTENING
TCP 127.0.0.1:31595 0.0.0.0:0 LISTENING
TCP 192.168.1.2:139 0.0.0.0:0 LISTENING
TCP 192.168.127.1:139 0.0.0.0:0 LISTENING
TCP 192.168.236.1:139 0.0.0.0:0 LISTENING
TCP [::]:135 [::]:0 LISTENING
TCP [::]:445 [::]:0 LISTENING
TCP [::]:990 [::]:0 LISTENING
TCP [::]:5357 [::]:0 LISTENING
TCP [::]:49152 [::]:0 LISTENING
TCP [::]:49153 [::]:0 LISTENING
TCP [::]:49154 [::]:0 LISTENING
TCP [::]:49155 [::]:0 LISTENING
TCP [::]:49156 [::]:0 LISTENING
TCP [::1]:5679 [::]:0 LISTENING



Development server running (error message displayed)

TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:912 0.0.0.0:0 LISTENING
TCP 0.0.0.0:990 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49155 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49156 0.0.0.0:0 LISTENING
TCP 127.0.0.1:843 0.0.0.0:0 LISTENING
TCP 127.0.0.1:943 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5679 0.0.0.0:0 LISTENING
TCP 127.0.0.1:7438 0.0.0.0:0 LISTENING
TCP 127.0.0.1:8184 0.0.0.0:0 LISTENING
TCP 127.0.0.1:27015 0.0.0.0:0 LISTENING
TCP 127.0.0.1:31595 0.0.0.0:0 LISTENING
TCP 192.168.1.2:139 0.0.0.0:0 LISTENING
TCP 192.168.1.2:843 0.0.0.0:0 LISTENING
TCP 192.168.1.2:943 0.0.0.0:0 LISTENING
TCP 192.168.1.2:8184 0.0.0.0:0 LISTENING
TCP 192.168.127.1:139 0.0.0.0:0 LISTENING
TCP 192.168.127.1:843 0.0.0.0:0 LISTENING
TCP 192.168.127.1:943 0.0.0.0:0 LISTENING
TCP 192.168.127.1:8184 0.0.0.0:0 LISTENING
TCP 192.168.236.1:139 0.0.0.0:0 LISTENING
TCP 192.168.236.1:843 0.0.0.0:0 LISTENING
TCP 192.168.236.1:943 0.0.0.0:0 LISTENING
TCP 192.168.236.1:8184 0.0.0.0:0 LISTENING
TCP [::]:135 [::]:0 LISTENING
TCP [::]:445 [::]:0 LISTENING
TCP [::]:990 [::]:0 LISTENING
TCP [::]:5357 [::]:0 LISTENING
TCP [::]:49152 [::]:0 LISTENING
TCP [::]:49153 [::]:0 LISTENING
TCP [::]:49154 [::]:0 LISTENING
TCP [::]:49155 [::]:0 LISTENING
TCP [::]:49156 [::]:0 LISTENING
TCP [::1]:843 [::]:0 LISTENING
TCP [::1]:943 [::]:0 LISTENING
TCP [::1]:5679 [::]:0 LISTENING
TCP [::1]:8184 [::]:0 LISTENING




Pressed "Cancel" to close box and stop server
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:912 0.0.0.0:0 LISTENING
TCP 0.0.0.0:990 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49155 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49156 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5679 0.0.0.0:0 LISTENING
TCP 127.0.0.1:7438 0.0.0.0:0 LISTENING
TCP 127.0.0.1:27015 0.0.0.0:0 LISTENING
TCP 127.0.0.1:31595 0.0.0.0:0 LISTENING
TCP 192.168.1.2:139 0.0.0.0:0 LISTENING
TCP 192.168.127.1:139 0.0.0.0:0 LISTENING
TCP 192.168.236.1:139 0.0.0.0:0 LISTENING
TCP [::]:135 [::]:0 LISTENING
TCP [::]:445 [::]:0 LISTENING
TCP [::]:990 [::]:0 LISTENING
TCP [::]:5357 [::]:0 LISTENING
TCP [::]:49152 [::]:0 LISTENING
TCP [::]:49153 [::]:0 LISTENING
TCP [::]:49154 [::]:0 LISTENING
TCP [::]:49155 [::]:0 LISTENING
TCP [::]:49156 [::]:0 LISTENING
TCP [::1]:5679 [::]:0 LISTENING
Quindor
 
Posts: 3
Joined: November 23rd, 2010, 4:38 pm

Re: Unable to connect to port 8184 when starting server

Postby Oliver » November 25th, 2010, 10:15 pm

Oh no, not again.

We've had variants of this issue for a long time, and we always think we've got it solved and then it pops back up.

Usually, it's something to do with IPv6, so my first suggestion for a possible workaround would be to simply try to disable IPv6 on your machine.

If you're open to it, I'd love to have a debugging session with you over skype screensharing? If yes, you can send me your skype-id in a PM and i'll grab you on Skype.

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Unable to connect to port 8184 when starting server

Postby rendov » August 2nd, 2012, 11:44 am

Oliver wrote:...Usually, it's something to do with IPv6, so my first suggestion for a possible workaround would be to simply try to disable IPv6 on your machine...

Thanks.
I could not understand what was happening.
sudo mono Player.IO_Development_Server.exe
[14:20:49] Starting Development Server (v2.3.2.0)
[14:20:50] Unable to start development server
[14:20:50] --------
[14:20:50] Unable to listen with a socket on port 8184. The port might be in use by another process.


Add in /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

sudo sysctl -p

sudo mono Player.IO_Development_Server.exe
[14:29:04] Starting Development Server (v2.3.2.0)
[14:29:04] Showing Login Dialog
rendov
 
Posts: 1
Joined: August 2nd, 2012, 11:29 am

Re: Unable to connect to port 8184 when starting server

Postby Benjaminsen » August 31st, 2012, 7:13 am

Can I get you to try rebooting to see if the issue goes away on the first instance of running the server, then returns when you try to run the server the second time?
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to C#