Open scott-s-karl opened 1 month ago
Asking AI what our other options might be besides setting up port forwarding: You're right that port forwarding can be challenging for many users. Let's explore some alternative options that could make your game more accessible:
UPnP (Universal Plug and Play):
STUN (Session Traversal Utilities for NAT):
TURN (Traversal Using Relays around NAT):
WebRTC (Web Real-Time Communication):
Hole Punching:
VPN (Virtual Private Network):
Relay Server:
Considering your constraints and desire for simplicity, here are a couple of recommendations:
Implement STUN with a fallback to a simple relay server:
Use a library that handles NAT traversal:
pyp2p
or pynng
, which can handle much of the networking complexity for you.Both of these options would require minimal setup from your friends while providing a good chance of successful connections across different network configurations.