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 to get local binded port from UDPClient #187

Open
anuranBarman opened this issue Jan 20, 2020 · 0 comments
Open

How to get local binded port from UDPClient #187

anuranBarman opened this issue Jan 20, 2020 · 0 comments

Comments

@anuranBarman
Copy link

Hi, I am trying to use this library in UDP communication with the server. I am able to send and receive data to and from the server but what I want to know is the local port it used to communicate with the server.

The reason I want to know the local port is that as that port is hole-punched in the router I want to use the same port for P2P connection with some embedded devices.

How can I get the local PORT ? and if Not possible how do I tell the library to bind to specific port which I define while creating the socket ?

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