Skip to content

RetroArch Network Control Interface

Purpose

Network Commands allow the control of certain parts of RetroArch over UDP.

Enabling

Enable network commands in the settings menu, or ensure that network_cmd_enable = "true" is set in retroarch.cfg. RetroArch will listen on port 55355 by default.

Sending commands

On Linux, network commands may be sent from the command line like so:

echo -n "QUIT" | nc -u -w1 127.0.0.1 55355

Commands

The following commands are supported (as of Jun 11 2024):

VERSION
GET_STATUS
GET_CONFIG_PARAM <param name>
SHOW_MESG

SET_SHADER <shader path>

READ_CORE_MEMORY <address> <number of bytes>
WRITE_CORE_MEMORY <address> <byte1> <byte2> ...

LOAD_STATE_SLOT <slot number>
PLAY_REPLAY_SLOT <slot number>

MENU_TOGGLE
QUIT
CLOSE_CONTENT
RESET

FAST_FORWARD
FAST_FORWARD_HOLD
SLOWMOTION
SLOWMOTION_HOLD
REWIND
PAUSE_TOGGLE
FRAMEADVANCE

MUTE
VOLUME_UP
VOLUME_DOWN

LOAD_STATE
SAVE_STATE
STATE_SLOT_PLUS
STATE_SLOT_MINUS

PLAY_REPLAY
RECORD_REPLAY
HALT_REPLAY
REPLAY_SLOT_PLUS
REPLAY_SLOT_MINUS

DISK_EJECT_TOGGLE
DISK_NEXT
DISK_PREV

SHADER_TOGGLE
SHADER_NEXT
SHADER_PREV

CHEAT_TOGGLE
CHEAT_INDEX_PLUS
CHEAT_INDEX_MINUS

SCREENSHOT
RECORDING_TOGGLE
STREAMING_TOGGLE

GRAB_MOUSE_TOGGLE
GAME_FOCUS_TOGGLE
FULLSCREEN_TOGGLE
UI_COMPANION_TOGGLE

VRR_RUNLOOP_TOGGLE
RUNAHEAD_TOGGLE
PREEMPT_TOGGLE
FPS_TOGGLE
STATISTICS_TOGGLE
AI_SERVICE

NETPLAY_PING_TOGGLE
NETPLAY_HOST_TOGGLE
NEPLAY_GAME_WATCH
NETPLAY_PLAYER_CHAT
NETPLAY_FADE_CHAT_TOGGLE

MENU_UP
MENU_DOWN
MENU_LEFT
MENU_RIGHT
MENU_A
MENU_B

OVERLAY_NEXT
OSK