Issue
Encountered the following error when running the SNMP service:
Start service: SnmpService [1272] SnmpService
SnmpReceive: unable to create socketjava.net.BindException: Address already in use: Cannot bind
Environment
I/A Series R2 SNMP driver
Windows Server 2008
Cause
The SNMP ports are being used by another application / process. In this particular case, the SNMP Service (which is available in Windows Server 2008) has been enabled.
Resolution
The I/A Series R2 default ports for SNMP are 161 (receive SNMP requests) and 162 (receive SNMP trap messages).
Check if the SNMP Service in Windows Server 2008 is enabled. If it is enabled and not in use:
- Disable it by stopping the service and setting it to 'Manual' so that it does not start whenever the computer reboot and starts.
- Uninstall it using Windows 'Add or Remove Programs'
Alternatively, you can change the SNMP ports in I/A Series R2. To do this, in your station, go to the SnmpService properties, 'General' > 'Config' tab.