Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: DART Socket Information
eadams

From: USA
Posts: 3
Member Since: 01/13/17
posted August 21, 2017 6:16 PM

How do I find out what IP address is actually being used if I start the manager with 'Any' address. Does the address change from message to message? What I see is that the LocalEndPoint of the manager, and the destination of the response are being reported as '0.0.0.0'
Nick B (Admin)

From: Utica, NY USA
Posts: 566
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 23, 2017 3:57 PM

Hello,

The address used is the 'Any' address, 0.0.0.0; this means that the manager is listening for incoming messages on all available IP addresses. The IP address that a message is actually received upon is the address that the sender sends it to ('Any' is only relevant on the local end; you cannot send to it); it will change if the sender sends to a different IP address.

If you are wondering about messages that are sent by the Manager from the 'Any' address, the message will be sent over the "default route" depending upon the recipient IP, so the NIC that the message is sent over can change. For more information:
https://en.wikipedia.org/wiki/0.0.0.0
eadams

From: USA
Posts: 3
Member Since: 01/13/17
posted August 23, 2017 4:45 PM

I know I do not have to specify a PC address, but I still want to know the actual address used for an SNMP transaction. The address is known within the IP packet received by the PC, so why is it not available in the response given? Or is it available, but I have to squirrel down through the socket handle?
Nick B (Admin)

From: Utica, NY USA
Posts: 566
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 23, 2017 5:14 PM

Hello,

Currently, we only expose the address that is locally bound to. I've entered this for investigation as feature request TFS1020 to see if it is possible to get this information.

If knowing the specific IP address is required, you can bind to a specific IP address instead of using 'Any'.
eadams

From: USA
Posts: 3
Member Since: 01/13/17
posted August 24, 2017 10:58 AM

Without delving too much into DART algorithms, we want to find out which local IP address is successful. In other posts, you have stated that you need two instances if the code needs to bind two distinct addresses. But do we have to that to force DART to try both addresses if the one instance has IP_ANY? We need this when there are alternative paths to the destination.
Nick B (Admin)

From: Utica, NY USA
Posts: 566
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 25, 2017 1:33 PM

Hello,

If you want to know which IP address is being used, yes, you'll currently need to use multiple instances, each bound to a specific IP address.
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX