[Scummvm-tracker] [ScummVM :: Bugs] #14371: LAN: Server's IP interface is sometimes from a virtual adapter

ScummVM :: Bugs trac at scummvm.org
Mon Mar 27 12:35:58 UTC 2023


#14371: LAN: Server's IP interface is sometimes from a virtual adapter
-----------------------+-------------------------------
Reporter:  antoniou79  |      Owner:  (none)
    Type:  defect      |     Status:  new
Priority:  normal      |  Component:  --Other--
 Version:              |   Keywords:  LAN, IP interface
    Game:              |
-----------------------+-------------------------------
 This is was noted on ScummVM 2.8git compiled from master HEAD) on Windows
 10 x64.

 When activating the LAN feature from Global Options...-> LAN -> Run
 server, ScummVM would choose an IP interface which corresponds to a
 virtual ethernet adapter named vEthernet (WSL) Hyper-V Virtual Ethernet
 Adapter. The resulting url for the server was: http://172.20.224.1:12345/
 As far as I can tell this is something set up by WSL2 (Windows Subsystem
 for Linux).

 The preferrable IP interface in my case would be the one of my home LAN
 using the IP range: 192.168.1.0/24, which is also the main network that
 the OS is using (to access the router/Internet and other devices in the
 LAN).

 Yet, there is no way to customise this. Ideally, ScummVM would be able to
 autodetect the preferrable LAN interface.

 From a short discussion on Discord, similar issue can happen on Linux and
 iOS.

 A relevant excerpt from the discussion that might be helpful in the
 resolution of the issue:
  (criezy) The IP comes from SDL_Net (look for SDLNet_ResolveHost in
 backends/networking/. Hopefully the code could be improved for all
 platforms there, without requiring platform-specific code to get a usable
 IP.
  (rootfather)  Looks like SDLnet simply picks the first IP configured on
 the system, regardless of the interfaces
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/14371>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list