amclauth / TrapperKeeper

An SNMP trap listener
0 stars 1 forks source link

java.net.BindException: Ne peut attribuer l'adresse demandée #1

Closed docteur1 closed 5 years ago

docteur1 commented 5 years ago

java.net.BindException: Ne peut attribuer l'adresse demandée 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 org.snmp4j.transport.DefaultUdpTransportMapping.(DefaultUdpTransportMapping.java:101) at receivetrap.TrapReceiver.listen(TrapReceiver.java:66) at receivetrap.Main.main(Main.java:30)

amclauth commented 5 years ago

As mentioned in the readme, this often requires sudo / root to bind to an address (especially on Linux). Works in OSX and Ubuntu 18.04. That error is the error you get when you don't have permission to bind to an address.

docteur1 commented 5 years ago

It's OK now. my IP was not correct