-
-
Notifications
You must be signed in to change notification settings - Fork 7
Client Authentication
Logan McNaughton edited this page Aug 31, 2023
·
6 revisions
Client authentication can be enabled by passing the --enable-auth option to the program.
When this option is enabled, you must set emulator-specific auth codes as environment variables, for example:
export MYEMU_AUTH=1234
./simple64-netplay-server --name "Server Name" --enable-auth
Where "MYEMU" matches the "emulator" value passed by the client in the create_room/get_rooms API call (the emulator name can be lowercase in the API call).
You can see how auth codes are implemented on the client side here: https://github.com/simple64/simple64-gui/blob/main/netplay/netplay_common.cpp