-3

I have a windows service that is listening to UDP packets and forwards them (as well as other things) via HTTP and I'm interested in giving it the least privileges as possible.

I'm unsure whether UDP listening requires special/admin privileges?

I am using UDPClient.Listen on port 1813.

My understanding of Network Service is that it uses the login credentials for network shares / domain access etc, not that it is regarding outgoing http connectivity?

Manfred Radlwimmer
  • 13,257
  • 13
  • 53
  • 62
Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152

1 Answers1

0

UDPListner works correctly using the built in "Local Service" account and does not require "Network Service" nor admin permissions (the problem I was trying to diagnose was unrelated to udp listening in the end).

I believe (albeit not conclusively) also because I'm listening on a port above 1023 then it does not require admin privileges to listen on, nor does it require netsh to allow that port.

Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152