I have a SNMP GET timeout issue when trying to get data from an IP on a VPN connection. It seems like the SharpSnmpLib looks for the IP address from the wrong network connection and it times out.
The app is a UWP test to try out Lextm.SharpSnmpLib. I am able to GET a standard OID from 127.0.0.1 but not an IP address over the VPN connection.
Is there some way to direct SharpSnmpLib to use a different network connection or to not use only the default connection?
Here is the code snippet:
var result = Messenger.Get(VersionCode.V1,
new System.Net.IPEndPoint("127.0.0.1"), 161),
new OctetString("public"),
new List<Variable> {
new Variable(new ObjectIdentifier("1.3.6.1.2.1.1.1.0")) },
6000);
The same code when tried to the router in a VPN connection, "10.192.10.1" fails with a timeout message.
Is there a way to configure SharpSnmpLib to look for the IP address in a different network connection, namely the VPN connection?