Page 1 of 1

[0.12] Opening socket failed

Posted: Sun Jul 19, 2015 11:39 pm
by Nemoder
With the Linux version if the ipv6 kernel module is not loaded the game refuses to host or join ipv4 multiplayer games and exits with "Opening socket failed: Address family not supported by protocol".

[0.12.1] Connect failure when IPv4 not present (xp or linux without the module)

Posted: Sat Jul 25, 2015 6:56 am
by Apotheosis
Basically Factorio generates this "Binding IPV6 socket failed: An operation was attempted on something that is not a socket." error when attempting to either host or connect to a multiplayer game over IPv4 on Windows XP. Shortly after the error happens the game mysteriously crashes as well.

Here seems to be the relevant part of the log file:

Code: Select all

  67.184 Factorio initialised
  85.017 Info Router.cpp:412: Router peerID(65535) shutting down.
  85.361 Info Router.cpp:439: Router state -> Disconnected
  85.371 Info MultiplayerManager.cpp:848: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
  85.371 Info MultiplayerManager.cpp:848: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
  85.371 Loading map 
  85.372 Info Scenario.cpp:160: Map version 0.12.1-4
  85.562 Info WindowsUDPSocket.cpp:73: Opening socket at port (34197)
  85.574 Info WindowsUDPSocket.cpp:161: Socket closed
  85.576 Error MultiplayerManager.cpp:107: MultiplayerManager failed: "Binding IPV6 socket failed: An operation was attempted on something that is not a socket.
"
  85.579 Info MultiplayerManager.cpp:848: networkTick(0) mapTick(-1) changing state from(CreatingGame) to(InitializationFailed)
  87.944 Info MultiplayerManager.cpp:154: NetworkTick(0) quitting multiplayer connection.
  87.944 Info MultiplayerManager.cpp:848: networkTick(0) mapTick(-1) changing state from(InitializationFailed) to(Disconnected)
  87.945 Info Router.cpp:412: Router peerID(0) shutting down.
  87.952 Info Router.cpp:439: Router state -> Disconnected
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\temp\factorio-650b3b72\libraries\stackwalker\stackwalker.cpp (904): StackWalker::ShowCallstack
c:\temp\factorio-650b3b72\src\util\logger.cpp (283): Logger::writeStacktrace
c:\temp\factorio-650b3b72\src\util\logger.cpp (337): Logger::logStacktrace
c:\temp\factorio-650b3b72\src\util\crashhandler.cpp (79): CrashHandler::writeStackTrace
c:\temp\factorio-650b3b72\src\util\crashhandler.cpp (88): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 7C864EB9)
7C864EB9 (kernel32): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 7C83ABC0)
7C83ABC0 (kernel32): (filename not available): ValidateLocale
 105.683 Error Util.cpp:45: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
Seems I'm not the only one getting this problem either. This was happening to me on 0.12.0 as well.

Re: [0.12.1] IPv4 on Windows XP failure to connect or host

Posted: Sat Jul 25, 2015 7:05 am
by Dev-iL
Can you (and whoever you're trying to connect with) come over to the [url=irc://irc.esper.net/factorio]IRC[/url] chat?
If you don't have an IRC client, you can use webchat.

Re: [0.12] Opening socket failed

Posted: Thu Jul 30, 2015 3:22 pm
by kovarex
Thx for the report, to make things more organised, I merged it with the other topic that is reporting practically the same problem (although on WinXP).

Re: [0.12.1] Connect failure when IPv4 not present (xp or linux without the module)

Posted: Wed Aug 12, 2015 7:58 am
by cube
Thanks for the reports. This was caused by an overly optimistic check (and several missing checks) for socket opening. In 0.12.4 this should work even with only IPv4.

Re: [0.12.1] Connect failure when IPv4 not present (xp or linux without the module)

Posted: Fri Aug 14, 2015 7:50 pm
by Nemoder
I am still getting the same error when joining or creating a multiplayer game with 0.12.4 on Linux :(

Re: [0.12.1] Connect failure when IPv4 not present (xp or linux without the module)

Posted: Fri Aug 21, 2015 3:35 pm
by cube
Nemoder wrote:I am still getting the same error when joining or creating a multiplayer game with 0.12.4 on Linux :(
Could you please open a new bug report and put a log file in it? This merging of topics left too much of a mess behind :)

Re: [0.12.1] Connect failure when IPv4 not present (xp or linux without the module)

Posted: Sun Aug 23, 2015 7:33 am
by Nemoder
cube wrote: Could you please open a new bug report and put a log file in it? This merging of topics left too much of a mess behind :)
done:
https://forums.factorio.com/forum/vie ... =7&t=15162