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

Cannot assign requested address (Bind failed) #14

Open
mihalichman opened this issue Feb 9, 2018 · 0 comments
Open

Cannot assign requested address (Bind failed) #14

mihalichman opened this issue Feb 9, 2018 · 0 comments

Comments

@mihalichman
Copy link

Hello! I trying start stun server. such a parameter set public ip address, and because server not have second ip then as second ip set another. but when I start take error

java.net.BindException: Cannot assign requested address (Bind failed)
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:93)
at java.net.DatagramSocket.bind(DatagramSocket.java:392)
at java.net.DatagramSocket.(DatagramSocket.java:242)
at java.net.DatagramSocket.(DatagramSocket.java:299)
at de.javawi.jstun.test.demo.StunServer.(StunServer.java:52)
at de.javawi.jstun.test.demo.StunServer.main(StunServer.java:271)

then I try start two server and set two address in start, but still get error. Maybe I completely do not understand how run self server. Server was run in AWS EC2.

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