RetroArch Netplay Issue

Running RetroArch 1.0.0.3. on Ubuntu 14.04. Everytime I try to set up netplay I get a message “Failed to initialize netplay”.

Any idea what the issue could be? It won’t work on either the host or client side.

Thoughts?

Thanks!

netplay is very particular. In addition to having your ports forwarded, you also need exactly the same revision of the core library and exactly the same ROM.

1 Like

I’ve got 2 PC’s set up running the exact same setup. Same OS, same cores, same ROMS. Literally identically. They are sitting next to each other. Ports are forwarded.

It doesn’t even let me start a netplay match and then wait for someone to connect or, visa versa, doesn’t let me try to connect.

It just fails immediately. It doesn’t event try to connect or anything. Just loads the rom and little yellow letters say “failed to initialize netplay”

I noticed a change in the netplay menu from 1.0.0.2 to 1.0.0.3. Suggesting there may have been at least something tweaked on it. Any chance this is a .3 bug?

ports are forwarded to PC’s next to each other???

Technically I placed them both outside of the network so port forwarding through my router shouldn’t be an issue.

I could see where port forwarding would be an issue if I couldn’t connect. I can’t even go to a point to try and connect. Netplay fails instantly.

A verbose log would be helpful in this case, run it with --verbose --menu

Where does the verbose log output to? I switched it on yesterday but wasn’t able to locate the output file.

Thanks for the help.

It\s not logged to file, it’s logged to stdout IIRC, you could run it in a console and copy it You could try retroarch --menu --verbose >> log.txt 2>&1

I’m going to need a little more help with that. Unfortunately I don’t exactly how to get the info from the log.

Thanks in advance for the help.

if you can launch from the command line with -v (or --verbose if you wanna be… verbose) it will print any errors right to the console there.

Alright. I got ya. Heres the text minus the config file at the top:

But to summarize, here is the important part:

RetroArch: init_netplay: Waiting for client… RetroArch [ERROR] :: init_tcp_socket :: Failed to set up netplay sockets. RetroArch [WARN] :: init_netplay :: Failed to initialize netplay.

Why oh why? lol how do I fix this?

Log.txt below:

RetroArch: parse_config_file: Found default config: /home/chris/.config/retroarch/retroarch.cfg. RetroArch: rarch_environment_cb: Environ SET_PIXEL_FORMAT: RGB565. RetroArch: verify_api_version: Version of libretro API: 1 RetroArch: verify_api_version: Compiled against API: 1 RetroArch: adjust_system_rates: Set audio input rate to: 29975.00 Hz. RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/5xbr-retro.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/bead.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/blinky.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/pixellate.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/quilez.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/retro-v2.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/scanline.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/sharp-bilinear.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/stock.cg” RetroArch: init_video_input: Video @ fullscreen RetroArch: gl_init: Found GL context: glx RetroArch: gl_init: Detecting screen resolution 1440x900. RetroArch: x11_query_screens: [X11]: Xinerama version: 1.1. RetroArch: x11_get_xinerama_coord: [X11]: Xinerama screens: 1. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: Using Xinerama on screen #0. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: X = 0, Y = 0, W = 1440, H = 900. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: Using windowed fullscreen. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: Found swap function: glXSwapIntervalMESA. RetroArch: gfx_ctx_glx_swap_interval: [GLX]: glXSwapInterval(1) RetroArch: gl_init: [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel® Q45/Q43 x86/MMX/SSE2. RetroArch: gl_init: [GL]: Version: 2.1 Mesa 10.1.3. RetroArch: gl_query_extension: Querying GL extension: ARB_ES2_compatibility => exists RetroArch: gl_query_extension: Querying GL extension: ARB_sync => exists RetroArch: gl_query_extension: Querying GL extension: ARB_texture_float => exists RetroArch: gl_query_extension: Querying GL extension: EXT_texture_sRGB => exists RetroArch: gl_query_extension: Querying GL extension: ARB_framebuffer_sRGB => exists RetroArch: gl_init: GL: Using resolution 1440x900 RetroArch: gl_init: [GL]: Default shader backend found: gl_cg. RetroArch: gl_shader_init: [GL]: Not loading any shader. RetroArch: gl_init: [GL]: Using 4 textures. RetroArch: gl_init: [GL]: Loaded 0 program(s). RetroArch: gl_set_texture_fmts: [GL]: Using GL_RGB565 for texture uploads. RetroArch: add_pad: [udev]: Plugged pad: Generic X-Box pad (046d:c21d) on port #0. RetroArch: add_pad: [udev]: Pad #0 (/dev/input/event10) supports force feedback. RetroArch: add_pad: [udev]: Pad #0 (/dev/input/event10) supports 16 force feedback effects. RetroArch: input_joypad_init_driver: Found joypad driver: “udev”. RetroArch: font_renderer_create_default: Using font rendering backend: bitmap. RetroArch: init_video_input: Suspending screensaver (X11). RetroArch: find_float_format: ALSA: Using signed 16-bit format. RetroArch: alsa_init: ALSA: Period size: 768 frames RetroArch: alsa_init: ALSA: Buffer size: 3072 frames RetroArch: alsa_init: ALSA: Can pause: yes. RetroArch: rarch_get_cpu_features: [CPUID]: Vendor: GenuineIntel RetroArch: rarch_get_cpu_features: [CPUID]: Features: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 RetroArch: resampler_sinc_new: Sinc resampler [SSE] RetroArch: resampler_sinc_new: SINC params (8 phase bits, 16 taps). RetroArch: rarch_update_system_info: [Core Info]: RetroArch: rarch_update_system_info: Display Name = SNES / Super Famicom (SNES9x Next) RetroArch: rarch_update_system_info: Supported Extensions = smc|fig|sfc|gd3|gd7|dx2|bsx|swc RetroArch: rarch_update_system_info: Authors = SNES9x Team|Squarepusher RetroArch: rarch_main_command: SRAM will not be saved. RetroArch: gl_set_nonblock_state: [GL]: VSync => on RetroArch: gfx_ctx_glx_swap_interval: [GLX]: glXSwapInterval(1) RetroArch: gl_set_nonblock_state: [GL]: VSync => on RetroArch: gfx_ctx_glx_swap_interval: [GLX]: glXSwapInterval(1) RetroArch: rarch_main_init_wrap: Using content: /home/chris/retroarch/roms/snes/Mortal Kombat (U) [!].smc. RetroArch: x11_query_screens: [X11]: Xinerama version: 1.1. RetroArch: x11_get_xinerama_monitor: [X11]: Xinerama screens: 1. RetroArch: ctx_glx_destroy_resources: [GLX]: Saved monitor #0. RetroArch: compute_monitor_fps_statistics: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames. rarch_main_init: === Build ======================================= Compiler: GCC (4.8.2) 32-bit Built: Oct 29 2014 rarch_main_init: Version: 1.0.0.3 rarch_main_init: ================================================= RetroArch: rarch_get_cpu_features: [CPUID]: Vendor: GenuineIntel RetroArch: rarch_get_cpu_features: [CPUID]: Features: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 RetroArch: load_symbols: Loading dynamic libretro from: “/usr/lib/libretro/snes9x_libretro.so” RetroArch: rarch_environment_cb: Environ SET_VARIABLES. RetroArch: rarch_environment_cb: Environ SET_CONTROLLER_INFO. RetroArch: rarch_environment_cb: Controller port: 1 RetroArch: rarch_environment_cb: SNES Joypad (ID: 1) RetroArch: rarch_environment_cb: SNES Mouse (ID: 2) RetroArch: rarch_environment_cb: Multitap (ID: 257) RetroArch: rarch_environment_cb: Controller port: 2 RetroArch: rarch_environment_cb: SNES Joypad (ID: 1) RetroArch: rarch_environment_cb: SNES Mouse (ID: 2) RetroArch: rarch_environment_cb: Multitap (ID: 257) RetroArch: rarch_environment_cb: SuperScope (ID: 260) RetroArch: rarch_environment_cb: Justifier (ID: 516) RetroArch: verify_api_version: Version of libretro API: 1 RetroArch: verify_api_version: Compiled against API: 1 RetroArch: rarch_environment_cb: Environ GET_OVERSCAN: 0 RetroArch: rarch_environment_cb: Environ GET_LOG_INTERFACE. RetroArch: rarch_environment_cb: Environ PERFORMANCE_LEVEL: 12. RetroArch: load_content: Loading content file: /home/chris/retroarch/roms/snes/Mortal Kombat (U) [!].smc. RetroArch: patch_content: Did not find a valid content patch. RetroArch: read_content_file: CRC32: 0xdef42945, SHA256: 3c6d3e4a9c9af160f1c1cf11ce4ead531d9500c1f58f1cbe682c90a5eaa3efb2 RetroArch: rarch_environment_cb: Environ UNSUPPORTED (#65572). RetroArch: init_core: Skipping SRAM load. RetroArch: init_netplay: Waiting for client… RetroArch [ERROR] :: init_tcp_socket :: Failed to set up netplay sockets. RetroArch [WARN] :: init_netplay :: Failed to initialize netplay. RetroArch: rarch_environment_cb: Environ SET_PIXEL_FORMAT: RGB565. RetroArch: adjust_system_rates: Set audio input rate to: 31961.16 Hz. RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/5xbr-retro.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/bead.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/blinky.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/pixellate.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/quilez.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/retro-v2.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/scanline.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/sharp-bilinear.cg” RetroArch: rarch_main_command: Found shader “/usr/share/libretro/shaders/stock.cg” RetroArch: init_video_input: Video @ fullscreen RetroArch: gl_init: Found GL context: glx RetroArch: gl_init: Detecting screen resolution 1440x900. RetroArch: x11_query_screens: [X11]: Xinerama version: 1.1. RetroArch: x11_get_xinerama_coord: [X11]: Xinerama screens: 1. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: Using Xinerama on screen #0. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: X = 0, Y = 0, W = 1440, H = 900. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: Using windowed fullscreen. RetroArch: gfx_ctx_glx_set_video_mode: [GLX]: Found swap function: glXSwapIntervalMESA. RetroArch: gfx_ctx_glx_swap_interval: [GLX]: glXSwapInterval(1) RetroArch: gl_init: [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel® Q45/Q43 x86/MMX/SSE2. RetroArch: gl_init: [GL]: Version: 2.1 Mesa 10.1.3. RetroArch: gl_query_extension: Querying GL extension: ARB_ES2_compatibility => exists RetroArch: gl_query_extension: Querying GL extension: ARB_sync => exists RetroArch: gl_query_extension: Querying GL extension: ARB_texture_float => exists RetroArch: gl_query_extension: Querying GL extension: EXT_texture_sRGB => exists RetroArch: gl_query_extension: Querying GL extension: ARB_framebuffer_sRGB => exists RetroArch: gl_init: GL: Using resolution 1440x900 RetroArch: gl_init: [GL]: Default shader backend found: gl_cg. RetroArch: gl_shader_init: [GL]: Not loading any shader. RetroArch: gl_init: [GL]: Using 4 textures. RetroArch: gl_init: [GL]: Loaded 0 program(s). RetroArch: gl_set_texture_fmts: [GL]: Using GL_RGB565 for texture uploads. RetroArch: add_pad: [udev]: Plugged pad: Generic X-Box pad (046d:c21d) on port #0. RetroArch: add_pad: [udev]: Pad #0 (/dev/input/event10) supports force feedback. RetroArch: add_pad: [udev]: Pad #0 (/dev/input/event10) supports 16 force feedback effects. RetroArch: input_joypad_init_driver: Found joypad driver: “udev”. RetroArch: font_renderer_create_default: Using font rendering backend: bitmap. RetroArch: init_video_input: Suspending screensaver (X11). RetroArch: find_float_format: ALSA: Using signed 16-bit format. RetroArch: alsa_init: ALSA: Period size: 768 frames RetroArch: alsa_init: ALSA: Buffer size: 3072 frames RetroArch: alsa_init: ALSA: Can pause: yes. RetroArch: rarch_get_cpu_features: [CPUID]: Vendor: GenuineIntel RetroArch: rarch_get_cpu_features: [CPUID]: Features: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 RetroArch: resampler_sinc_new: Sinc resampler [SSE] RetroArch: resampler_sinc_new: SINC params (8 phase bits, 16 taps). RetroArch: gl_set_nonblock_state: [GL]: VSync => on RetroArch: gfx_ctx_glx_swap_interval: [GLX]: glXSwapInterval(1) RetroArch: rarch_update_system_info: [Core Info]: RetroArch: rarch_update_system_info: Display Name = SNES / Super Famicom (SNES9x) RetroArch: rarch_update_system_info: Supported Extensions = smc|sfc|swc|fig RetroArch: rarch_update_system_info: Authors = SNES9x Team RetroArch: gl_set_nonblock_state: [GL]: VSync => on RetroArch: gfx_ctx_glx_swap_interval: [GLX]: glXSwapInterval(1) RetroArch: rarch_environment_cb: Environ (Private) EXEC. RetroArch: rarch_update_system_info: [Core Info]: RetroArch: rarch_update_system_info: Display Name = SNES / Super Famicom (SNES9x) RetroArch: rarch_update_system_info: Supported Extensions = smc|sfc|swc|fig RetroArch: rarch_update_system_info: Authors = SNES9x Team RetroArch: gl_set_nonblock_state: [GL]: VSync => on RetroArch: gfx_ctx_glx_swap_interval: [GLX]: glXSwapInterval(1) RetroArch: config_save_file: Saving config at path: “/home/chris/.config/retroarch/retroarch.cfg” RetroArch: save_files: Saving RAM type #0 to “/home/chris/retroarch/roms/snes/Mortal Kombat (U) [!].srm”. RetroArch: save_files: Saving RAM type #1 to “/home/chris/retroarch/roms/snes/Mortal Kombat (U) [!].rtc”. RetroArch: compute_audio_buffer_statistics: Average audio buffer saturation: 64.63 %, standard deviation (percentage points): 8.62 %. RetroArch: compute_audio_buffer_statistics: Amount of time spent close to underrun: 0.36 %. Close to blocking: 11.99 %. RetroArch: x11_query_screens: [X11]: Xinerama version: 1.1. RetroArch: x11_get_xinerama_monitor: [X11]: Xinerama screens: 1. RetroArch: ctx_glx_destroy_resources: [GLX]: Saved monitor #0. RetroArch: compute_monitor_fps_statistics: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames. Sound buffer size: 2048 (512 samples) Map_LoROMMap

So I actually set up the IP and everything this time and I got this error:

(This computer was set up as host)

RetroArch: init_netplay: Connecting to netplay host… RetroArch [ERROR] :: get_nickname :: Invalid nick size. RetroArch [ERROR] :: send_info :: Failed to receive nick from host. RetroArch [WARN] :: init_netplay :: Failed to initialize netplay.

I have a nickname set up in the config files and the user settings. Not sure what the issue is.

Weird works fine in Windows… make sure you have a nick setup on both sides under user options, also change port to something over 1024 since in most linux distros you need administrator permissions to open sockets below 1024.

In the host you should not enter an IP address, just toggle enable netplay. In the client you need to toggle enable netplay client and enable netplay IIRC and enter the IP address of the server

enable netplay IIRC? That option I don’t think I have available or I’m misunderstanding you.

As fair as my settings:

Host Netplay: On <Blank> Client: Off Spectator: Off Delay Frames: 1 Port: 55435

Client: Netplay: On <Host IP> Client: On Spectator: Off Delay Frames: 1 Port: 55435

Both Get the same error: RetroArch: init_netplay: Waiting for client… RetroArch [ERROR] :: init_tcp_socket :: Failed to set up netplay sockets. RetroArch [WARN] :: init_netplay :: Failed to initialize netplay.

IIRC = if I remember correctly Weird, issue anyway, did you get RA from the PPA or did you build it yourself?

lol wow that was dumb on my part. Sorry about that. I got it from the PPA. I wrote up a post on the build that I’m doing here:

http://entropyprojects.blogspot.com/201 … build.html

Goes into how I installed everything. Was writing it up to help out a buddy up North put his together.

Any idea on how I can “downgrade” back to 1.0.0.2 to see if the issues persist?

The one in my PPA is pretty old and it seems to work here. At least, it goes to ‘waiting for client’ instead of just crashing out. You can try it, if you like, but you should probably just download/install the deb manually instead of adding the entire PPA to your apt sources.

Try with sudo? I’m installing an Ubuntu VM atm, let’s see if I can get it to work

I’m not having any luck finding 1.0.0.2 unfortunately.

The one in my PPA self-reports as 1.0.0.2. If you’d prefer to compile it yourself instead of using the deb binary, you can get the source tarball from my PPA.