Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement UDP NAT hole punching (via Steam P2P) #2147

Open
BeefyAndTheDucks opened this issue Jun 30, 2024 · 5 comments
Open

Implement UDP NAT hole punching (via Steam P2P) #2147

BeefyAndTheDucks opened this issue Jun 30, 2024 · 5 comments

Comments

@BeefyAndTheDucks
Copy link

Describe the issue

Is reversed proxy planned for nitrox? Reverse Proxy is another way of network communication without opening ports/using UPnP.

@Measurity
Copy link
Collaborator

I don't think this would help. The server running the reverse proxy would still need to be port forwarded. If I misunderstood, please point me where I can read up on what you mean.

@BeefyAndTheDucks
Copy link
Author

How about NAT Punchthrough? It seems that you can connect two clients without port forwarding.

@Measurity
Copy link
Collaborator

Normally NAT hole punching is done in collaboration with a "rendezvous server". The server is port forwarded and clients connect to it to establish a direct P2P connection afterwards (see: 3.4 Peers Behind Different NATs). More convenient would be to rely on Steam to do this for us. I'll rename the title so anyone interested in implementing can track this issue.

(I think it would be possible to do UDP NAT punching without a server. But it won't always work depending on routers used. Better to put work on using Steam P2P)

@Measurity Measurity changed the title Reverse Proxy Implement UDP NAT hole punching Jul 2, 2024
@BeefyAndTheDucks
Copy link
Author

Is it possible to implement Steam P2P within the mod? If not, I've seen other mods for other games (Nebula for Dyson Sphere Program specifically) use something called ngrok to avoid Port forward and UPnP.

@Measurity Measurity changed the title Implement UDP NAT hole punching Implement UDP NAT hole punching (via Steam P2P) Aug 9, 2024
@Andrew1431
Copy link
Collaborator

It wouldn't be if you're going to continue supporting cross platform play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants