Page 1 of 1

[0.13.6] [Pending] --mp-connect only accepts host:port syntax

Posted: Thu Jul 07, 2016 9:35 pm
by mickael9
When using the --mp-connect command line flag, specifying only the hostname/IP part without the port (eg factorio --mp-connect 1.2.3.4) leads to the game trying to connect on port 0 instead of the default one

Code: Select all

  11.164 Joining game 1.2.3.4:0
  11.165 Info PosixUDPSocket.cpp:50: Opening socket at port 0
  11.165 Info Router.cpp:594: Router state -> Connecting
  11.165 Error MultiplayerManager.cpp:129: MultiplayerManager failed: "Sendto failed: Invalid argument"
  11.166 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(-1) changing state from(Ready) to(InitializationFailed)
  13.464 Info MultiplayerManager.cpp:180: NetworkTick(0) quitting multiplayer connection.
  13.464 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(-1) changing state from(InitializationFailed) to(Disconnected)

Re: [0.13.6] --mp-connect only accepts host:port syntax

Posted: Thu Jul 07, 2016 9:45 pm
by Oxyd
Is there any particular reason you're trying to use --mp-connect? It's a hack from very early times of Factorio and I actually wanted to remove it for 0.13, except I forgot to actually do it.

Re: [0.13.6] --mp-connect only accepts host:port syntax

Posted: Thu Jul 07, 2016 10:57 pm
by mickael9
Simply because it's faster to start the game that way for me, so I don't have to find my way through the menus each time.

Re: [0.13.6] --mp-connect only accepts host:port syntax

Posted: Mon Jul 11, 2016 4:43 pm
by zopieux
I, for one, would find it very useful if this feature was official and maintained. It is indeed quite cumbersome to go through a 4-level deep menu to connect to a game server.

Thanks!

Re: [0.13.6] --mp-connect only accepts host:port syntax

Posted: Tue Jul 12, 2016 3:17 pm
by mickael9
I would also add that without this direct connect feature, no external server browser / game launchers could exist.

Re: [0.13.6] --mp-connect only accepts host:port syntax

Posted: Wed Jul 13, 2016 1:53 pm
by Oxyd
mickael9 wrote:I would also add that without this direct connect feature, no external server browser / game launchers could exist.
Do any exist, though?

Re: [0.13.6] --mp-connect only accepts host:port syntax

Posted: Wed Jul 13, 2016 2:21 pm
by Oxyd
Also, can't reproduce. Whoever moved this to confirmed, post the exact reproduction steps you used while confirming this bug.

Moving out of confirmed.

Re: [0.13.6] [Pending] --mp-connect only accepts host:port syntax

Posted: Fri Jul 15, 2016 10:37 pm
by mickael9
I also can't reproduce as of 0.13.9. I think this can be closed as fixed.