Constructor of Trap class. The default trap listening port is 162. If the computer running this trap receive has firewall installed. You should unblock port 162 to receive trap.
Trap Class | SnmpSource Namespace