dylrob34 / city_builder

City Builder Unity Game
1 stars 0 forks source link

Auto UPNP for multiplayer #9

Open dylrob34 opened 2 years ago

dylrob34 commented 2 years ago

Add the ability for a host to auto port forward with upnp so anyone can host a game.

To be really extra we can host a server on the pi that allows a host to then send their public address to a list of available servers which will show up in a server browser in a clients game.

Probably can use a simple flask server that maintains a list of currently running servers.

3 Routes: Add Server - used by host Get Servers - used by client Remove Server - used by host

This would remove the need for manual port forwarding or typing in ip addresses.

To be EXTRA extra, we can write the tunneling software I told christian about so that upnp is not required. The pi can act as a middleman between a host and all of the clients.