Page 1 of 2
spring-dedicated using IPv6 only
Posted: 09 Jun 2011, 02:19
by snipe
hi
Code: Select all
$ ./spads.pl /home/spads/spads/etc/spads.conf
NOTICE - [SPADS] Initializing SPADS
LogOutput initialized.
Spring 0.82.7.1 (Headless Unitsync)
Build date/time: Jun 9 2011 01:13:18
Available log subsystems: VFS-detail, VFS, ArchiveScanner, unitsync
Enabled log subsystems: unitsync
Enable or disable log subsystems using the LogSubsystems configuration key
or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] loaded, 0.82.7.1 (Headless Unitsync)
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] initialized, 0.82.7.1 (Headless Unitsync)
[unitsync] joining
[unitsync] removing all archives
[unitsync] get map info: DeltaSiegeDry
[unitsync] startpos: 863, 803
[unitsync] startpos: 9544, 755
[unitsync] startpos: 455, 4760
[unitsync] startpos: 9856, 4700
[unitsync] startpos: 683, 2062
[unitsync] startpos: 9420, 2074
[unitsync] startpos: 515, 3441
[unitsync] startpos: 9850, 3000
[unitsync] startpos: 2530, 4680
[unitsync] startpos: 7925, 4512
error = 2, MapOptions.lua, error = 2, maphelper/mapinfo.lua, [string "maphelper/mapinfo.lua"]:69: DeltaSiegeDry: missing file
[unitsync] error: GetMapOptionCount: luaParser.Execute() failed: error = 2, maphelper/mapinfo.lua, [string "maphelper/mapinfo.lua"]:69: DeltaSiegeDry: missing file
[unitsync] removing all archives
[unitsync] deinitialized
WARNING - [SPADS] The lobby account currently used by SPADS is not tagged as bot. It is recommended to ask a lobby administrator for bot flag on accounts used by SPADS
If you find any errors, report them to mantis or the forums.
LogOutput initialized.
Spring 0.82.7.1 (Headless)
Build date/time: Jun 9 2011 01:38:50
Available log subsystems: VFS-detail, VFS, ArchiveScanner,
Enabled log subsystems:
Enable or disable log subsystems using the LogSubsystems configuration key
or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
Loading script from file: /home/spads/spads/var/startscript.txt
Starting server...
Binding UDP socket to IP (v6) :: Port 8452
[UDPListener] succesfully bound socket on port 8452
Connecting to autohost on port 8454
Server started on port 8452
No clients connected, shutting down server
I have the server and start listening, all the defaults.
I tested without firwall (iptables is clean)
any client can connect to this, why?
french: (original texte)
J'ai bien le serveur d├®marrer et en ├®coute ,toute les valeur par d├®fauts.
j'ai tester sans firwall (iptables is clean)
aucun client n'arrive a ce connecter , pourquoi ?
Re: SPADS AutoHost beta release
Posted: 09 Jun 2011, 02:45
by abma
Binding UDP socket to IP (v6) :: Port 8452
disable ipv6 should help... spring-dedicated seems to use ipv6:
http://springrts.com/phpbb/viewtopic.ph ... 4&p=450796
http://springrts.com/phpbb/viewtopic.php?f=11&t=21223
i'm unsure if already an other solution exists...
Re: SPADS AutoHost beta release
Posted: 09 Jun 2011, 10:04
by bibim
abma wrote:i'm unsure if already an other solution exists...
Not really, unfortunately.
StartScriptFormat.txt wrote:
HostIP=xxx.xxx.xxx.xxx; // (optional) which IP to host on. omit or use an empty value to host on any local IP.
// == IP Support ==
// IP properties accept:
// - IP v4 addresses like 127.0.0.1 or 123.123.123.123
// - IP v6 addresses like :: or fe80::1
// - NO host-names
The type of socket is chosen according to "HostIP" startscript setting, but most servers have both LAN and WAN interfaces, and must open sockets on both interfaces so that both Internet and LAN players can connect. So the "HostIP" setting must be omitted, and in this case, it seems Spring chooses to use IPv6 if available.
Re: SPADS AutoHost beta release
Posted: 09 Jun 2011, 12:46
by snipe
the server supports IPv6, which will become the norm. Thank you for your answer
Re: SPADS AutoHost beta release
Posted: 09 Jun 2011, 12:49
by snipe
bibim wrote:abma wrote:i'm unsure if already an other solution exists...
Not really, unfortunately.
StartScriptFormat.txt wrote:
HostIP=xxx.xxx.xxx.xxx; // (optional) which IP to host on. omit or use an empty value to host on any local IP.
// == IP Support ==
// IP properties accept:
// - IP v4 addresses like 127.0.0.1 or 123.123.123.123
// - IP v6 addresses like :: or fe80::1
// - NO host-names
The type of socket is chosen according to "HostIP" startscript setting, but most servers have both LAN and WAN interfaces, and must open sockets on both interfaces so that both Internet and LAN players can connect. So the "HostIP" setting must be omitted, and in this case, it seems Spring chooses to use IPv6 if available.
Thank you for your response, may or must I bring this change (file, syntax), the server is a linux server debian squeez
Thank you in advance
Re: SPADS AutoHost beta release
Posted: 09 Jun 2011, 14:49
by bibim
snipe: the "HostIP" setting is defined in the startscript, which is a file generated by the autohost each time a new game starts.
I was just explaining that there is no easy way to force spring-dedicated to use IPv4, because if we provide the "HostIP" setting in the startscript then spring-dedicated won't listen on all interfaces.
Re: SPADS AutoHost beta release
Posted: 09 Jun 2011, 19:42
by hoijui
if i am not mistaken, using "0.0.0.0" (INADDR_ANY) should have the desired effect. The equivalent for IPv6 is "::".
These are called the any-address, and allow incoming connections through all available external IPs (of the same IP protocol version).
Please report back if you tested and this does not work.
If it is true, i will include this info in the documentation you pointed too.
Re: SPADS AutoHost beta release
Posted: 09 Jun 2011, 22:18
by snipe
hoijui wrote:if i am not mistaken, using "0.0.0.0" (INADDR_ANY) should have the desired effect. The equivalent for IPv6 is "::".
These are called the any-address, and allow incoming connections through all available external IPs (of the same IP protocol version).
Please report back if you tested and this does not work.
If it is true, i will include this info in the documentation you pointed too.
I may I want to try your solution.
May I do it how?
In the file spads.conf ?
bibim:
I understood that the problem seems to come from the communication between these two interfaces.
fr:
mai je je veux bien essayer ta solution.
mai je procède comment ?
Dans le fichier spads.conf
bibim
j'ai bien compris que le souci semble venir de là communication entre ces deux interfaces
Re: SPADS AutoHost beta release
Posted: 10 Jun 2011, 10:33
by hoijui
:D
yeah of course, just try... nothing will explode if it does not work.
Re: SPADS AutoHost beta release
Posted: 10 Jun 2011, 19:54
by snipe
so
im modifier ,
iptraf, paquet client is received, and after stop server. :
Code: Select all
UDP (71 bytes) from 127.0.0.1:38834 to 127.0.0.1:8454 on lo Ôöé
Ôöé UDP (29 bytes) from 127.0.0.1:38834 to 127.0.0.1:8454 on lo
netstat
Code: Select all
udp 0 0 127.0.0.1:47983 127.0.0.1:8454 ESTABLISHED 1008 47927 23123/spring-dedica
udp6 0 0 :::8452 :::* 1008 47925 23123/spring-dedica
no news info:
Code: Select all
LogOutput initialized.
Spring 0.82.7.1 (Headless Unitsync)
Build date/time: Jun 9 2011 01:13:18
Available log subsystems: VFS-detail, VFS, ArchiveScanner, unitsync
Enabled log subsystems: unitsync
Enable or disable log subsystems using the LogSubsystems configuration key
or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] loaded, 0.82.7.1 (Headless Unitsync)
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] initialized, 0.82.7.1 (Headless Unitsync)
[unitsync] joining
[unitsync] removing all archives
[unitsync] deinitialized
WARNING - [SPADS] The lobby account currently used by SPADS is not tagged as bot. It is recommended to ask a lobby administrator for bot flag on accounts used by SPADS
If you find any errors, report them to mantis or the forums.
LogOutput initialized.
Spring 0.82.7.1 (Headless)
Build date/time: Jun 9 2011 01:38:50
Available log subsystems: VFS-detail, VFS, ArchiveScanner,
Enabled log subsystems:
Enable or disable log subsystems using the LogSubsystems configuration key
or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
Loading script from file: /home/spads/spads/var/startscript.txt
Starting server...
Binding UDP socket to IP (v6) :: Port 8452
[UDPListener] succesfully bound socket on port 8452
Connecting to autohost on port 8454
Server started on port 8452
No clients connected, shutting down server
If you find any errors, report them to mantis or the forums.
spads.conf
Code: Select all
# Local network configuration
localLanIp:
IP v6 fe80::1
IP v4 127.0.0.1
autoHostPort:8454
or
Code: Select all
# Local network configuration
localLanIp:
127.0.0.1
autoHostPort:8454
no effect ?
tanks for advances
Re: SPADS AutoHost beta release
Posted: 11 Jun 2011, 00:28
by hoijui
you should be testing 0.0.0.0
Re: SPADS AutoHost beta release
Posted: 11 Jun 2011, 01:12
by snipe
hoijui wrote:you should be testing 0.0.0.0
no ,one other idea?
Re: SPADS AutoHost beta release
Posted: 11 Jun 2011, 09:49
by hoijui
you want to say, you tested with that, and were not able to connect through any of the interfaces of the machine?
Re: SPADS AutoHost beta release
Posted: 12 Jun 2011, 05:33
by snipe
hoijui wrote:you want to say, you tested with that, and were not able to connect through any of the interfaces of the machine?
so the result is negative. May I only eth0 and lo?
call of duty word at this ware technically had the player connected.
Nexuiz is not a problem.
we do not see what's going on when it connects sure the interface (server) there is a parameter that could be put in the spads.conf to better see what it does?
(ex: server -verbose) ?
fr
oui le resulta est negatif. mai j'ai seulment eth0 et lo ?
call of duty word at ware peuve les joueur ce connecter.
nexiuz ne pose pas de probleme.
on ne vois pas ce qu'il ce passe quand il ce connecte sure les interface (serveur) il y a un paramètre que l'on pourrait mettre dans le spads.conf pour mieux voir ce qu'il fait ?
Re: SPADS AutoHost beta release
Posted: 12 Jun 2011, 12:16
by hoijui
hehe :D
your french seems to be as buggy as your english :D
the connecting parts is purely within spring, not SPADS, and there is no -verbose switch there. even if, it could not log connection attempts at interfaces/IPs it has not a socket opened for at.
so... i guess someone (me) should do tests with spring opened at address 0.0.0.0 then, somewhen. you may follow this:
http://springrts.com/mantis/view.php?id=2468
Re: SPADS AutoHost beta release
Posted: 12 Jun 2011, 19:26
by snipe
hoijui wrote:hehe :D
your french seems to be as buggy as your english :D
the connecting parts is purely within spring, not SPADS, and there is no -verbose switch there. even if, it could not log connection attempts at interfaces/IPs it has not a socket opened for at.
so... i guess someone (me) should do tests with spring opened at address 0.0.0.0 then, somewhen. you may follow this:
http://springrts.com/mantis/view.php?id=2468
yes my French is as bad: s
ok, I'll follow the link and the evolution of the bug
fr
oui mon français est aussi mauvais :s
ok , je vais suivre le lien et l'├®volution du bug
Re: SPADS AutoHost beta release
Posted: 12 Jun 2011, 19:45
by hoijui
where are you from, whats your native language?
Re: SPADS AutoHost beta release
Posted: 12 Jun 2011, 20:14
by snipe
hoijui wrote:where are you from, whats your native language?
Switzerland, Swiss rommand language is, simply put it is French
Thank you for the help
fr
Suisse ,la langue est le suisse rommand, pour faire simple c'est le français
Merci pour l'aide :)
Re: SPADS AutoHost beta release
Posted: 12 Jun 2011, 23:06
by hoijui
ahh k :D
then i guess you just use slang talk, or are you maybe not natively suisse?
Re: SPADS AutoHost beta release
Posted: 13 Jun 2011, 02:13
by bibim
Using a patched version of SPADS to add line "HostIP=0.0.0.0" in the startscript fixed snipe's problem. I guess I will have to add a setting in SPADS to make "HostIP" configurable...