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

How can I open external port for able to connect to my localhost from the outside? #36

Open
ghost opened this issue Mar 30, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 30, 2022

Hi everyone, i faced with unable to get external port for connection to my localhost from the outside.
I tried const response = await stun.request('stun.l.google.com:19302'); let xorAddress = response.getXorAddress(); //console.log(xorAddress.address + xorAddress.port) but data from method getXorAddress() is wrong.
Help me please get ip and port for able to connect to my localhost from the outside.

@ghost ghost changed the title How can I open externaul port for able to connect to my localhost from the outside? How can I open external port for able to connect to my localhost from the outside? Mar 30, 2022
@reklatsmasters
Copy link
Member

You have to check type of received message. Promise resolved, it means response is arrived. @megamuha

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

1 participant