Skip to content

Cannot assign requested address (Bind failed) #14

@mihalichman

Description

@mihalichman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions