rcelyte / BeatUpRcelyte

A lightweight modded Beat Saber multiplayer server
The Unlicense
17 stars 5 forks source link

Auto-detect own public IP address #21

Open rcelyte opened 1 year ago

rcelyte commented 1 year ago

BeatUpServer currently needs to be told it's own address via the config file so clients can deeplink properly. This process should be automated so the server can work out of the box and respond to address changes. A practical solution would be to ping a number of public STUN servers (specific domains should be configurable) on startup, gathering responses for IPv4 and optionally IPv6 (see #20).