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
Was trying to test 2 different instances on LAN. However whenever I try and connect to the game on my second instance, the error pops up and closes the second instance, and the first instance (The one i'm hosting the server on) crashes.
I've tried connecting to the game with 127.0.0.1, localhost (Isn't supported yet, but I think you guys should get on it ), my direct IP, and my system IP. I also tried doing direct IP then port 34197 after, but it still didn't work.
I forwarded port 34197 as said in the Wiki, and double checked the config file to make sure it was the right port.
Re: "Binding socket failed: Error code 10048"
Posted: Sun Nov 02, 2014 8:48 pm
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.
Re: "Binding socket failed: Error code 10048"
Posted: Sun Nov 02, 2014 8:49 pm
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.
Re: "Binding socket failed: Error code 10048"
Posted: Mon Nov 03, 2014 8:28 pm
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?
Re: "Binding socket failed: Error code 10048"
Posted: Mon Nov 03, 2014 8:37 pm
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.
Re: "Binding socket failed: Error code 10048"
Posted: Mon Nov 03, 2014 9:07 pm
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)?
Re: "Binding socket failed: Error code 10048"
Posted: Mon Nov 03, 2014 9:20 pm
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.
Re: "Binding socket failed: Error code 10048"
Posted: Mon Nov 03, 2014 10:07 pm
by PalllaX
Hmm didn't worked for us... I did now everything logical but "Player was dropped from the game"...
Re: "Binding socket failed: Error code 10048"
Posted: Tue Dec 09, 2014 3:07 pm
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.