libretro / gambatte-libretro

Hard fork of Gambatte to the libretro API.
http://sourceforge.net/projects/gambatte/
GNU General Public License v2.0
103 stars 78 forks source link

Socket Error for Game Boy Link Server #201

Open greenmancode opened 2 years ago

greenmancode commented 2 years ago

I'm trying to connect two devices together with the Game Boy Link feature in Gambatte (scroll to GameBoy Link Mode - New config options).

Windows 10 PC:

OnePlus 6T:

The Gambatte configuration file from my PC is here:

gambatte_dark_filter_level = "0"
gambatte_gb_bootloader = "enabled"
gambatte_gb_colorization = "disabled"
gambatte_gb_hwmode = "Auto"
gambatte_gb_internal_palette = "GB - DMG"
gambatte_gb_link_mode = "Network Server"
gambatte_gb_link_network_port = "56400"
gambatte_gb_link_network_server_ip_1 = "0"
gambatte_gb_link_network_server_ip_10 = "0"
gambatte_gb_link_network_server_ip_11 = "2"
gambatte_gb_link_network_server_ip_12 = "5"
gambatte_gb_link_network_server_ip_2 = "1"
gambatte_gb_link_network_server_ip_3 = "0"
gambatte_gb_link_network_server_ip_4 = "0"
gambatte_gb_link_network_server_ip_5 = "0"
gambatte_gb_link_network_server_ip_6 = "0"
gambatte_gb_link_network_server_ip_7 = "0"
gambatte_gb_link_network_server_ip_8 = "0"
gambatte_gb_link_network_server_ip_9 = "0"
gambatte_gb_palette_twb64_1 = "TWB64 001 - Aqours Blue"
gambatte_gb_palette_twb64_2 = "TWB64 101 - 765PRO Pink"
gambatte_gbc_color_correction = "GBC only"
gambatte_gbc_color_correction_mode = "accurate"
gambatte_gbc_frontlight_position = "central"
gambatte_mix_frames = "disabled"
gambatte_rumble_level = "10"
gambatte_show_gb_link_settings = "disabled"
gambatte_turbo_period = "4"
gambatte_up_down_allowed = "disabled"

After a bit of diagnosis with the log file, I figured out that the server wasn't starting because of this error in the log file:

[libretro INFO] Starting GameLink nework server on 10.0.0.25:56400
[libretro ERROR] Error opening socket: No error
...
[libretro ERROR] Error opening socket: No error
[libretro ERROR] Error opening socket: No error
[libretro INFO] Stoping GameLink nework

I tried to connect on my phone and got an error in the log file about not being able to connect of course:

Starting GameLink nework client on 10.0.0.25:56400
Error connecting to server: Connection timed out

Any ideas for how to get the Game Boy Link server working on Windows 10?