"Binding socket failed: Error code 10048"

This subforum contains all the issues which we already resolved.
Post Reply
Twinki
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Oct 08, 2014 1:10 pm
Contact:

"Binding socket failed: Error code 10048"

Post by Twinki »

EDIT: Fixed, both instances were using the same port. If anyone runs into this issue, change one instance's port to something else.
Error Code 10048
Last edited by Twinki on Sun Nov 02, 2014 8:53 pm, edited 3 times in total.

Boogieman14
Filter Inserter
Filter Inserter
Posts: 770
Joined: Sun Sep 07, 2014 12:59 pm
Contact:

Re: "Binding socket failed: Error code 10048"

Post by Boogieman14 »

If you're running two instances on the same PC, one of them will need to use a different port. Two applications can never use the same port at the same time.
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.

Twinki
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Oct 08, 2014 1:10 pm
Contact:

Re: "Binding socket failed: Error code 10048"

Post by Twinki »

Boogieman14 wrote:If you're running two instances on the same PC, one of them will need to use a different port. Two applications can never use the same port at the same time.
Well only one instance is hosting the actual server, so only one should be using the port right? I'll go ahead and try two different ports.

EDIT: Fixed.

User avatar
PalllaX
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Wed Oct 29, 2014 8:16 am
Contact:

Re: "Binding socket failed: Error code 10048"

Post by PalllaX »

yeah, just copy the whole directory and you are good to go.
But this principle is maybe the key for the 3 player problem.

Communicate with two system on the same port outside of private network may result in problems.
Is there any way to have 2 Ports open for one network?

jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: "Binding socket failed: Error code 10048"

Post by jeroon »

you can change the port the game uses in Config\config.ini , port=34197 (near the bottom)
I'm running 2 clients on one computer for mod testing, and _aD joined me over the internet without any problems for a 3 player game. I forward 2 ports to my computer (34197 and 34198), one for each client.

User avatar
PalllaX
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Wed Oct 29, 2014 8:16 am
Contact:

Re: "Binding socket failed: Error code 10048"

Post by PalllaX »

well this is exactly our problem.
I tried it like you mentioned.
I opened port 34197 and 34198 for 192.168.0.10 (my local machine which opens two instances) in my router.
I changed the port in the config for the host 34197 and the second client who will join to 34198.

Now I hosted from the 34197 instance and joined from the other with 192.168.0.10.

Now drs tried it from outside the network and same problem as before. He kicked me but stayed in game with the server.

What's the problem? I guess even if I'm joining over public IP instead of local ip (192.168...) it would be happend.
?!?

_aD was from outside your network?
You and _aD had same bit version (32/64)?

jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: "Binding socket failed: Error code 10048"

Post by jeroon »

You need to log in the second client via the public ip as well, not the local 192.168.0.10 , because the server will send drs the ip of the 3rd machine: 192.168.0.10 , and he can't connect to that.

User avatar
PalllaX
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Wed Oct 29, 2014 8:16 am
Contact:

Re: "Binding socket failed: Error code 10048"

Post by PalllaX »

Hmm didn't worked for us... I did now everything logical but "Player was dropped from the game"... :(

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: "Binding socket failed: Error code 10048"

Post by cube »

Both of the problems described in this version (error 10048 and dropouts because of mixed local/public IP addresses) have now better error messages, so I'm moving this to resolved.

Post Reply

Return to “Resolved Problems and Bugs”