2024-04-20 05:30 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002255Spring engineGeneralpublic2010-12-15 10:50
ReporterLicho 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.82.6.1 
Target VersionFixed in Version0.82.7 
Summary0002255: Spring UDPlistener gets bound to wrong IP if there are multiple addresses - ignores HostIP
DescriptionUDPListener uses "Any()" as bound address.

On machines with multiple IPs (which is springrts.com too - both linux and windows parts) it gets bound to incorrect IP - like local LAN IP.

Even if script contains set HostIP, spring still insist on using Any with unpredictable results.

Code is here:
https://github.com/spring/spring/blob/master/rts/System/Net/UDPListener.cpp#L59



To fix it, make it use HostIP if defined, otherwise Any.

This issue causes problems to relay host (workaround solution was possible) and recently to my attempts to move autohosts to windows VM to remove lag (workaround not possible this time).


TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0006054

abma (administrator)

Two users reported this today in #sy:

@Licho:

 MelBot: <Phantasm> Ok, so someone broke either lobby server or TASClient... Not sure which yet and I'm too tired to do anything today. Anyway the problem is that people are getting LAN IP from autohost and Spads nor my config hasn't changed recently, so problem can't be there.

<[CN]Doxie> Well... I have no clue why it's suddenly reporting it's local IP to the clients instead of the WAN IP...

~0006055

Licho (reporter)

That was separate issue in uberserver, I fixed that already.

~0006056

Licho (reporter)

(They need to reconnect)

~0006057

Kloot (developer)

implemented, test git-head bitte

~0006063

Licho (reporter)

I tested with spring-dedicated from Spring 0.82+.4.0 (0.82.3-1030-g4cf9786)

It didn't seem to work.
Do I have correct version?

I have "HostIP" in script for dedicated server

~0006064

Kloot (developer)

I forgot to update the dedserv, done now.

~0006078

abma (administrator)

@Licho: did you retry with kloot's changes?

~0006079

Licho (reporter)

Verified, works :)

~0006080

abma (administrator)

kloot implemented/fixed it with https://github.com/spring/spring/commit/42390a434bae6e6066945b24386a77bc3443dff3
+Notes

-Issue History
Date Modified Username Field Change
2010-12-10 01:09 Licho New Issue
2010-12-10 02:10 abma Description Updated
2010-12-11 00:11 abma Note Added: 0006054
2010-12-11 00:14 Licho Note Added: 0006055
2010-12-11 00:14 Licho Note Added: 0006056
2010-12-11 00:56 Kloot Note Added: 0006057
2010-12-11 00:56 Kloot Status new => feedback
2010-12-12 02:36 Licho Note Added: 0006063
2010-12-12 13:21 Kloot Note Added: 0006064
2010-12-14 12:13 abma Note Added: 0006078
2010-12-15 02:12 Licho Note Added: 0006079
2010-12-15 10:50 abma Note Added: 0006080
2010-12-15 10:50 abma Status feedback => resolved
2010-12-15 10:50 abma Fixed in Version => 0.82.6.1+git
2010-12-15 10:50 abma Resolution open => fixed
2010-12-15 10:50 abma Assigned To => abma
2010-12-15 10:50 abma Assigned To abma => Kloot
+Issue History