Uberserver with localhost.

Uberserver with localhost.

Discuss development of lobby clients, server, autohosts and auto-download software.

Moderators: Moderators, Lobby Developers

Post Reply
lamer
Posts: 146
Joined: 08 Mar 2014, 23:13

Uberserver with localhost.

Post by lamer »

How to run uberserver and host a game from the same machine? I get "[UDPListener] error: unable to bind UDP port, see log for details." error
infolog.txt
(5.31 KiB) Downloaded 13 times
. Looks like it made an attempt to bind router's ip instead of local ip (all important ports are forwarded 8200:tcp, 8201:udp, 8452:udp). But if another player hosts the game then everything works fine.

I try to keep as minimal installation as possible: spring+uberserver+springlobby+games(zero-k)+maps seems enough for me (no autohost bots and don't know what are those).

I came up with handmade uberserver-patch
fix_localhost_patch.txt
(1.49 KiB) Downloaded 21 times
that allows me to do what i want. Tested it with lan and internet, works in every way. But still i have no full confidence about it.
What is the proper way to host a game from the uberserver's machine/local_ip? And to make this post worthy of developer's subforum branch: Is attached patch valid?
0 x

abma
Spring Developer
Posts: 3600
Joined: 01 Jun 2009, 00:08

Re: Uberserver with localhost.

Post by abma »

looks for me like a springlobby bug at first.

do you have a working buildsetup for springlobby?

if so, try to compile current master branch, this commit should fix the problem:

https://github.com/springlobby/springlo ... 0607c8cf35

can't say much about your patch as i didn't write the code / don't know what needs to be considered at server side.

i only know that ip stuff is quiet complex, as client could connect through localhost, nat, and lan ip. the same applies for the nat-traversal code.
0 x

lamer
Posts: 146
Joined: 08 Mar 2014, 23:13

Re: Uberserver with localhost.

Post by lamer »

Updated springlobby (and uberserver) to recent commits.
Tested a few lan and internet cases.
Everything works for me now (except nat-traversal, and as port forwarding is ok for me i didn't investigate this issue).
Thanks!
0 x

abma
Spring Developer
Posts: 3600
Joined: 01 Jun 2009, 00:08

Re: Uberserver with localhost.

Post by abma »

ok, great! thanks for the bug report!
0 x

Post Reply

Return to “Lobby Clients & Server”