Friday, 2013-09-06

*** tpb has joined #freeorion00:00
*** tomreyn has quit IRC00:11
*** Ingmar has quit IRC01:46
*** Ingmar has joined #freeorion01:47
*** STalKer-X has quit IRC03:27
*** STalKer-X has joined #freeorion03:30
*** GeofftheMedio_ has joined #freeorion05:27
*** GeofftheMedio has quit IRC05:29
*** GeofftheMedio_ is now known as GeofftheMedio05:29
*** vurma has joined #freeorion06:35
*** vurma has quit IRC07:07
*** jinxdone has joined #freeorion08:46
*** vurma has joined #freeorion08:51
*** GeofftheMedio_ has joined #freeorion08:59
*** GeofftheMedio has quit IRC09:00
*** GeofftheMedio_ is now known as GeofftheMedio09:00
*** VargaD has quit IRC10:12
*** VargaD has joined #freeorion10:17
*** GeofftheMedio_ has joined #freeorion12:34
*** GeofftheMedio has quit IRC12:34
*** GeofftheMedio_ is now known as GeofftheMedio12:34
*** STalKer-X_r has joined #freeorion14:01
*** STalKer-X has quit IRC14:02
*** tomreyn has joined #freeorion14:06
*** vurma has quit IRC15:53
*** theTroy has joined #freeorion16:54
*** Redz has joined #freeorion18:32
*** hisabbenkh has joined #freeorion18:38
hisabbenkhhi, i'm trying to host a freeorion game and the freeoriond deamon only binds on localhost:12346 instead of the network interface, is there a way to specify the bind address?18:39
GeofftheMedioyou'd need to change the source code and recompile, I think18:40
hisabbenkhdoes it bind on 0.0.0.0 by default GeofftheMedio?18:40
*** vurma has joined #freeorion18:42
GeofftheMedioI'm not very familiar with network coding and such, but it looks like 255.255.255.25518:42
GeofftheMedioat least for the discovery port...18:43
GeofftheMediomessage port might be different...18:43
GeofftheMedioI don't see an IP specified for the message port (which is 12346) calls18:45
hisabbenkhwhen freeoriond is started by freeorion i only see localhost:12346 on netstat18:47
hisabbenkhit worked before, but this time i'm using the debian package 0.4.2 [SVN 6281]. last time i compiled the binaries myself18:48
hisabbenkh0.4.3*18:48
GeofftheMediowhat version worked?18:48
hisabbenkhthat was a long time ago, close before the 0.4.2 release18:48
GeofftheMediothat's not that long ago18:48
GeofftheMedioi don't think any of the network code has changed since then18:49
hisabbenkhok, that's curious maybe something is wrong with my system, but i see other daemons that bind to the network interface18:50
GeofftheMediothere have been a few recent (last 6 months) changes to ServerNetworking.cpp but I don't think any are relevant, unless their commit messages are misleading / incomplete18:51
GeofftheMediopossibly the default behaviour of boost asio changed?18:51
hisabbenkhi'll try something, have to restart18:52
*** hisabbenkh has quit IRC18:52
*** custos-mundi has quit IRC18:56
*** hisabbenkh has joined #freeorion18:57
hisabbenkhok that didn't help, i thought it had something to do with /etc/hosts18:57
GeofftheMediodunno.18:57
hisabbenkhit would be nice if you could configure this in some config file18:57
hisabbenkhhow would i change the bind address / socket in the source code?18:58
GeofftheMedioif you know anything about boost asio and how such configuration could be specified, that would be much more likely to happen18:58
GeofftheMediopresumably there's a parameter to specify18:58
hisabbenkhok, i'll read the asio documentation18:58
GeofftheMediorelevant FreeOrion code is probably ServerNetworking.cpp18:59
hisabbenkhthis seems to be the way to do it in asio: http://stackoverflow.com/questions/3570685/boostasio-clarification-on-binding-to-a-specific-network-interface19:00
tpb<http://ln-s.net/-v6T> (at stackoverflow.com)19:00
GeofftheMedioit's already doing something resembling that19:05
hisabbenkhthe asio code that opens the connection is in ServerNetworking.cpp:419 void ServerNetworking::Init()19:05
GeofftheMediospecifically what it's doing is hard to tell because various things are passed to various other things to set it all up19:05
hisabbenkhyes, i see that19:06
GeofftheMediom_player_connection_acceptor is initialized with just the io_service parameter19:07
GeofftheMediodunno if that matters?19:07
GeofftheMediolater call to open presumably handles the equivalent of passing the endpoint in the constructor to the acceptor19:09
hisabbenkhtcp::endpoint endpoint(tcp::v4(), MESSAGE_PORT);19:09
hisabbenkhi think that you can use another constructor here19:09
hisabbenkhhttp://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/reference/ip__basic_endpoint/basic_endpoint.html19:09
tpb<http://ln-s.net/4N6W> (at www.boost.org)19:09
hisabbenkhthe one that the freeorion code currently uses is the second one19:10
hisabbenkhthe third one is the one that you can pass an address to19:10
hisabbenkhsomething like: tcp::endpoint endpoint(ip::address::from_string( "0.0.0.0" ), MESSAGE_PORT);19:10
hisabbenkhi'll play around with this once i found out how to rebuild the package ;)19:11
GeofftheMediowouldn't passing a protocol make sense in this case?19:12
GeofftheMedioif you want to accept connections from any ip?19:12
hisabbenkhnormally yes, so the code is correct ...19:13
hisabbenkhi'm just trying to force it to my network address to see if that is a workaround for my current problem19:14
hisabbenkhnow that i think about it, there was a boost update in debian recently, maybe that broke the package and it just needs to be rebuild19:20
hisabbenkhok, i found the problem i was reading the tcpstat output wrong :-\20:28
hisabbenkheverything is ok with the freeorion code :)20:28
GeofftheMediodoubyful20:28
GeofftheMediobut i'd believe that this issue is fine20:29
hisabbenkhi was giving the other players a wrong ip address20:30
hisabbenkhand was searching for the problem in the wrong place ... long work day20:30
*** vurma has quit IRC21:42
*** vurma has joined #freeorion21:53
*** hisabbenkh has quit IRC22:07
*** jinxdone has quit IRC22:08
*** vurma has quit IRC22:13
*** hisabbenkh has joined #freeorion22:20
*** hisabbenkh has quit IRC23:03
*** Redz has left #freeorion23:18
*** tomreyn has quit IRC23:23

Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!