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

Forwarding random port with upnpc #700

Closed
Tracked by #810
Neylix opened this issue Nov 17, 2022 · 1 comment
Closed
Tracked by #810

Forwarding random port with upnpc #700

Neylix opened this issue Nov 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working networking Involve networking

Comments

@Neylix
Copy link
Member

Neylix commented Nov 17, 2022

Describe the problem you discovered

In previous implementation, while forwarding to port 0, the router was redirecting a random port. But since we use miniupnpc, we cannot anymore forward the port 0, so we cannot open a random port automatically.

Describe the solution you'd like

We have 2 options :

  • Consider using an other tool for port forwarding like https://github.com/benoitc/erlang-nat if this implementation is working well it would be better than having a upnpc programm compiled in C and opening a random port using 0 works in this lib
  • Determining a list of port possibility and taking a random number until the port opening is working
@Neylix Neylix added bug Something isn't working networking Involve networking labels Nov 17, 2022
@apoorv-2204 apoorv-2204 self-assigned this Dec 29, 2022
@apoorv-2204
Copy link
Contributor

apoorv-2204 commented Jan 4, 2023

Update

'https://github.com/benoitc/erlang-nat'
With the upnp capability enabled or disabled, my local network is inoperable with this nat lib operations, and I am unable to connect to other nodes.

Proposed solution:

  1. Continue with option nb 2,

  2. CLI to ask user(step by step like in aebweb cli) for input for env variables. else they can ignore and move with default

image

Neylix pushed a commit that referenced this issue Jan 12, 2023
* attempt to resolve forwarding random port with upnpc

* review changes

* review changes 2

* fix

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working networking Involve networking
Projects
None yet
Development

No branches or pull requests

3 participants