Closed docteur1 closed 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.
It's OK now. my IP was not correct
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)