lextudio / sharpsnmplib

C# SNMP Library (#SNMP) - Open source SNMP implementation for C# and .NET
https://sharpsnmp.com
MIT License
358 stars 151 forks source link

Listen Problem in Cisco and Linux #652

Closed lextudio-support closed 1 month ago

lextudio-support commented 1 month ago

Hi,

I made huge progress in SNMP reading, writing and listening windows itself. But I have a problem to listen Linux machine and Cisco Router. I am sure that configurations of that machines were done well and they are working couse I have tried them with other SNMP aplications.

Although I can get information with get, walk, set command, I could not bind 162 port and listen.

What could be the problem?

Any suggestion please..

Thank you..

Original Reported Date: 2010-09-13T07:06:48.733-07:00 Original CodePlex Discussion Thread ID: 227026

lextudio-support commented 1 month ago

Copied from CodePlex without authors:

I solved the problem.

I have learned that Socket.Bind() method should be given 'IPAddress.Any' NOT a particular IP address as a parameter to listen outher machine.

Thanks..

Original Posted Date: 2010-09-14T07:47:51.237-07:00

lextudio-support commented 1 month ago

Copied from CodePlex without authors:

Next time please spare some time reviewing snmpd. It shows how to monitor a port and handles SNMP messages.

Regards,

Original Posted Date: 2010-09-17T18:37:08.523-07:00

lextudio-support commented 1 month ago

Marked as Answer Date: 2013-10-06T20:46:09.043-07:00