*** tpb has joined #freeorion | 00:00 | |
*** tomreyn has quit IRC | 00:11 | |
*** Ingmar has quit IRC | 01:46 | |
*** Ingmar has joined #freeorion | 01:47 | |
*** STalKer-X has quit IRC | 03:27 | |
*** STalKer-X has joined #freeorion | 03:30 | |
*** GeofftheMedio_ has joined #freeorion | 05:27 | |
*** GeofftheMedio has quit IRC | 05:29 | |
*** GeofftheMedio_ is now known as GeofftheMedio | 05:29 | |
*** vurma has joined #freeorion | 06:35 | |
*** vurma has quit IRC | 07:07 | |
*** jinxdone has joined #freeorion | 08:46 | |
*** vurma has joined #freeorion | 08:51 | |
*** GeofftheMedio_ has joined #freeorion | 08:59 | |
*** GeofftheMedio has quit IRC | 09:00 | |
*** GeofftheMedio_ is now known as GeofftheMedio | 09:00 | |
*** VargaD has quit IRC | 10:12 | |
*** VargaD has joined #freeorion | 10:17 | |
*** GeofftheMedio_ has joined #freeorion | 12:34 | |
*** GeofftheMedio has quit IRC | 12:34 | |
*** GeofftheMedio_ is now known as GeofftheMedio | 12:34 | |
*** STalKer-X_r has joined #freeorion | 14:01 | |
*** STalKer-X has quit IRC | 14:02 | |
*** tomreyn has joined #freeorion | 14:06 | |
*** vurma has quit IRC | 15:53 | |
*** theTroy has joined #freeorion | 16:54 | |
*** Redz has joined #freeorion | 18:32 | |
*** hisabbenkh has joined #freeorion | 18:38 | |
hisabbenkh | hi, 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 |
---|---|---|
GeofftheMedio | you'd need to change the source code and recompile, I think | 18:40 |
hisabbenkh | does it bind on 0.0.0.0 by default GeofftheMedio? | 18:40 |
*** vurma has joined #freeorion | 18:42 | |
GeofftheMedio | I'm not very familiar with network coding and such, but it looks like 255.255.255.255 | 18:42 |
GeofftheMedio | at least for the discovery port... | 18:43 |
GeofftheMedio | message port might be different... | 18:43 |
GeofftheMedio | I don't see an IP specified for the message port (which is 12346) calls | 18:45 |
hisabbenkh | when freeoriond is started by freeorion i only see localhost:12346 on netstat | 18:47 |
hisabbenkh | it worked before, but this time i'm using the debian package 0.4.2 [SVN 6281]. last time i compiled the binaries myself | 18:48 |
hisabbenkh | 0.4.3* | 18:48 |
GeofftheMedio | what version worked? | 18:48 |
hisabbenkh | that was a long time ago, close before the 0.4.2 release | 18:48 |
GeofftheMedio | that's not that long ago | 18:48 |
GeofftheMedio | i don't think any of the network code has changed since then | 18:49 |
hisabbenkh | ok, that's curious maybe something is wrong with my system, but i see other daemons that bind to the network interface | 18:50 |
GeofftheMedio | there 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 / incomplete | 18:51 |
GeofftheMedio | possibly the default behaviour of boost asio changed? | 18:51 |
hisabbenkh | i'll try something, have to restart | 18:52 |
*** hisabbenkh has quit IRC | 18:52 | |
*** custos-mundi has quit IRC | 18:56 | |
*** hisabbenkh has joined #freeorion | 18:57 | |
hisabbenkh | ok that didn't help, i thought it had something to do with /etc/hosts | 18:57 |
GeofftheMedio | dunno. | 18:57 |
hisabbenkh | it would be nice if you could configure this in some config file | 18:57 |
hisabbenkh | how would i change the bind address / socket in the source code? | 18:58 |
GeofftheMedio | if you know anything about boost asio and how such configuration could be specified, that would be much more likely to happen | 18:58 |
GeofftheMedio | presumably there's a parameter to specify | 18:58 |
hisabbenkh | ok, i'll read the asio documentation | 18:58 |
GeofftheMedio | relevant FreeOrion code is probably ServerNetworking.cpp | 18:59 |
hisabbenkh | this seems to be the way to do it in asio: http://stackoverflow.com/questions/3570685/boostasio-clarification-on-binding-to-a-specific-network-interface | 19:00 |
tpb | <http://ln-s.net/-v6T> (at stackoverflow.com) | 19:00 |
GeofftheMedio | it's already doing something resembling that | 19:05 |
hisabbenkh | the asio code that opens the connection is in ServerNetworking.cpp:419 void ServerNetworking::Init() | 19:05 |
GeofftheMedio | specifically what it's doing is hard to tell because various things are passed to various other things to set it all up | 19:05 |
hisabbenkh | yes, i see that | 19:06 |
GeofftheMedio | m_player_connection_acceptor is initialized with just the io_service parameter | 19:07 |
GeofftheMedio | dunno if that matters? | 19:07 |
GeofftheMedio | later call to open presumably handles the equivalent of passing the endpoint in the constructor to the acceptor | 19:09 |
hisabbenkh | tcp::endpoint endpoint(tcp::v4(), MESSAGE_PORT); | 19:09 |
hisabbenkh | i think that you can use another constructor here | 19:09 |
hisabbenkh | http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/reference/ip__basic_endpoint/basic_endpoint.html | 19:09 |
tpb | <http://ln-s.net/4N6W> (at www.boost.org) | 19:09 |
hisabbenkh | the one that the freeorion code currently uses is the second one | 19:10 |
hisabbenkh | the third one is the one that you can pass an address to | 19:10 |
hisabbenkh | something like: tcp::endpoint endpoint(ip::address::from_string( "0.0.0.0" ), MESSAGE_PORT); | 19:10 |
hisabbenkh | i'll play around with this once i found out how to rebuild the package ;) | 19:11 |
GeofftheMedio | wouldn't passing a protocol make sense in this case? | 19:12 |
GeofftheMedio | if you want to accept connections from any ip? | 19:12 |
hisabbenkh | normally yes, so the code is correct ... | 19:13 |
hisabbenkh | i'm just trying to force it to my network address to see if that is a workaround for my current problem | 19:14 |
hisabbenkh | now that i think about it, there was a boost update in debian recently, maybe that broke the package and it just needs to be rebuild | 19:20 |
hisabbenkh | ok, i found the problem i was reading the tcpstat output wrong :-\ | 20:28 |
hisabbenkh | everything is ok with the freeorion code :) | 20:28 |
GeofftheMedio | doubyful | 20:28 |
GeofftheMedio | but i'd believe that this issue is fine | 20:29 |
hisabbenkh | i was giving the other players a wrong ip address | 20:30 |
hisabbenkh | and was searching for the problem in the wrong place ... long work day | 20:30 |
*** vurma has quit IRC | 21:42 | |
*** vurma has joined #freeorion | 21:53 | |
*** hisabbenkh has quit IRC | 22:07 | |
*** jinxdone has quit IRC | 22:08 | |
*** vurma has quit IRC | 22:13 | |
*** hisabbenkh has joined #freeorion | 22:20 | |
*** hisabbenkh has quit IRC | 23:03 | |
*** Redz has left #freeorion | 23:18 | |
*** tomreyn has quit IRC | 23:23 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!