Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. UdpClient access denied exception

UdpClient access denied exception

Scheduled Pinned Locked Moved C#
sysadminquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Knechtges
    wrote on last edited by
    #1

    I am using a UdpClient to listen for messages from another machine on the same network. I am using port 63000 and this works on all machines except for 1. This one machine gives me an AccessDenied SocketException when I create the object in the constructor. I have looked at netstat and TCPView and no other apps/processes are using port 63000. If I move the port to 60001, it works. My constructor for the UdpClient is using the IPEndPoint object: private static ipEndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 63000); Google has not been helpful, as everything I read says that it is likely because another app/process is using the same port. However, I cannot find anything using that port in netstat or TCPView. Does anyone have any ideas for me to try or look at? Thanks!

    Richard Andrew x64R B 2 Replies Last reply
    0
    • D David Knechtges

      I am using a UdpClient to listen for messages from another machine on the same network. I am using port 63000 and this works on all machines except for 1. This one machine gives me an AccessDenied SocketException when I create the object in the constructor. I have looked at netstat and TCPView and no other apps/processes are using port 63000. If I move the port to 60001, it works. My constructor for the UdpClient is using the IPEndPoint object: private static ipEndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 63000); Google has not been helpful, as everything I read says that it is likely because another app/process is using the same port. However, I cannot find anything using that port in netstat or TCPView. Does anyone have any ideas for me to try or look at? Thanks!

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Have you tried a clean boot to see if it works then?

      The difficult we do right away... ...the impossible takes slightly longer.

      1 Reply Last reply
      0
      • D David Knechtges

        I am using a UdpClient to listen for messages from another machine on the same network. I am using port 63000 and this works on all machines except for 1. This one machine gives me an AccessDenied SocketException when I create the object in the constructor. I have looked at netstat and TCPView and no other apps/processes are using port 63000. If I move the port to 60001, it works. My constructor for the UdpClient is using the IPEndPoint object: private static ipEndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 63000); Google has not been helpful, as everything I read says that it is likely because another app/process is using the same port. However, I cannot find anything using that port in netstat or TCPView. Does anyone have any ideas for me to try or look at? Thanks!

        B Offline
        B Offline
        BobJanova
        wrote on last edited by
        #3

        Check your firewall settings – perhaps it is explicitly blocked as a serving port.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups