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

This subforum contains all the issues which we already resolved.
Nemoder
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Fri Feb 22, 2013 11:14 am
Contact:

[0.12] Opening socket failed

Post 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".
Apotheosis
Inserter
Inserter
Posts: 20
Joined: Tue Sep 02, 2014 5:48 pm
Contact:

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

Post 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.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post 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.
Leading Hebrew translator of Factorio.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12] Opening socket failed

Post 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).
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

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

Post 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.
Nemoder
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Fri Feb 22, 2013 11:14 am
Contact:

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

Post by Nemoder »

I am still getting the same error when joining or creating a multiplayer game with 0.12.4 on Linux :(
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

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

Post 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 :)
Nemoder
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Fri Feb 22, 2013 11:14 am
Contact:

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

Post 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
Post Reply

Return to “Resolved Problems and Bugs”