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. WinControls and System.Management

WinControls and System.Management

Scheduled Pinned Locked Moved C#
csharpsecuritytutorialquestion
2 Posts 2 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.
  • W Offline
    W Offline
    Wender Oliveira
    wrote on last edited by
    #1

    Hello people, I have an Web Application and I need to get the Mac Address from client computer for security reasons. So I tried to do this by using Windows Control, but Windows Control isn't working when I call for System.Management objects like when I try to get the Mac Address. Explorer shows an alert about SecurityException. Anyone knows how to do this? another solution? tks Wender Oliveira .NET Developer

    D 1 Reply Last reply
    0
    • W Wender Oliveira

      Hello people, I have an Web Application and I need to get the Mac Address from client computer for security reasons. So I tried to do this by using Windows Control, but Windows Control isn't working when I call for System.Management objects like when I try to get the Mac Address. Explorer shows an alert about SecurityException. Anyone knows how to do this? another solution? tks Wender Oliveira .NET Developer

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You're trying to get the MAC address of a client on the server side of your ASP.NET application. The short answer is, you can't. Not because of the security restrictions either. Simply because when you try and do an ARP resolve on the IP address, you'll get the MAC address of the NIC on the side of the router that the server is on, not the client machine. There is no method of getting the MAC address of a NIC unless that NIC happens to be on the same physical subnet as the server. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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