Connect SNMP4J on UBUNTU

Hi,

We are using the library ‘org.snmp4j:snmp4j:3.4.3’ in our JAVA application to communicate with SNMP to our printer on Ubuntu, but it still doesn’t work for us.
Nor does it work with a console communication with snmpwalk.

We have confirmed that the ip, port and community are correct.

We were wondering if anything else is needed for it to work correctly in Ubuntu, any kind of package we need to have preinstalled or extra configuration on ports, etc.

Do anyone had this kind of trouble?

Maybe the SNMP Agent of your printer is not accepting any traffic from remote by default?
Because community based SNMP (v1/v2c) is very insecure, vendors disable it by default or limit access to local loop (127.0.0.1) only.

Hope this helps.