mac-address

MAC address in Compact Framework

How can I get the MAC Address using only the compact framework? ...

Get mac address for remote computer under NT4 in C

Is it possible to get the mac address for a remote connection under NT4. The remote pc opens a socket connection into the program and I can get the ip address but need the mac. I have tried using SendARP but this doesn't seem to be supported in NT4. ...

Read MAC Address from network adapter in .NET

I'd like to be able to read the mac address from the first active network adapter using VB.net or C# (using .NET 3.5 SP1) for a winform application ...

C++: Get MAC address of network adapters on Vista?

We are currently using the NetBios method, and it works ok under XP. Preliminary tests under Vista show that it also works, but there are caveats - NetBIOS has to be present, for instance, and from what I've been reading, the order of the adapters is bound to change. Our alternative method - with SNMPExtensionQuery - seems to be broken u...

Postback not working with ASP.NET Routing (Validation of viewstate MAC failed)

Hi. I'm using the ASP.NET 3.5 SP1 System.Web.Routing with classic WebForms, as described in http://chriscavanagh.wordpress.com/2008/04/25/systemwebrouting-with-webforms-sample/ All works fine, I have custom SEO urls and even the postback works. But there is a case where the postback always fails and I get a: Validation of viewstate MAC...

Changing the MAC Address in Vista - Broadcom adapter

Is there a way that we could override the default mac address / set a new mac address on a Vista machine for a Broadcom adapter ? ...

Doing ARP and Inverse ARP on Linux 2.6.21 (glibc 2.3.5)

I need to store persistent reference to third party device on an arbitrary IP network where the IP address of the devices may be static or randomly assigned by DHCP. I don't control the devices on the network and I can't rely on DNS and other ad-hoc networking protocols existing or working with the devices. So I have been instructed to ...

MAC address

public static NDIS_802_3_ADDRESS StrToByteArray(string str) { ASCIIEncoding encoding = new ASCIIEncoding(); byte[] m = encoding.GetBytes(str); NDIS_802_3_ADDRESS mac = new NDIS_802_3_ADDRESS(m); return mac; } You use these method in order to change string to mac address, h...

How to retrieve foreign host's MAC address in C++

Currently we're parsing arp request output from the command line. string cmd = "arp -n "; cmd.append(ipaddress); cmd.append(" | grep "); cmd.append(ipaddress); fgets( line, 130, fp); fgets( line, 130, fp); ret.append(line); ... It works, but is there a way to do this using a library function that wont depend so much on the native com...

Reliable method to get machine's MAC address in C#

I need a way to get a machine's MAC address regardless of the OS it is running using C#. Application will need to work on XP/Vista/Win7 32 and 64 bit as well as on those OSs but with a foreign language default. Many of the C# commands and OS queries don't work across OS. Any ideas? I have been scraping the output of "ipconfig /all" b...

limit access through MAC address

Hi- I'm setting up a WAMP/LAMP stack on an old PC. This computer will be connected to a local network with about a dozen other PC's. I'm interested in limiting access from everyone else's computers, so that only my partner and I can access our local server. The best way, I think, to do this is to block out everyone else's MAC address (...

How can I programmatically get the MAC address of an iPhone 3G S?

This question has an answer, but it only works on the old iPhone and iPod touch. On the iPhone 3G S, it gives me "00:00:00:00:00:70", which is incorrect. ...

Getting the MAC address of the remote host

I just a moment ago saw a request for finding the MAC adress of a remote host. An answer was that the MAC address is always sent as part of the TCP/IP protocol. How would I go about retrieving this information from an ASP.NET C# application? See: Reference to sister-post ...

Get MAC address in Silverlight

Is it possible to get the client's MAC address from a Silverlight app? It would be ideal if the solution works OOB too. ...

In TCPServer (Ruby) how can i get the IP/MAC from the client?

Hi, i want to get the IP Address of the client in a TCPServer in Ruby. And (if it is possible) the MAC Address. For example, a Time Server in Ruby, see the comment. tcpserver = TCPServer.new("", 80) if tcpserver puts "Listening" loop do socket = tcpserver.accept if socket Thread.new do puts "Connected from" + # HERE! How c...

Determine next hop mac-address in c#

I'm writing an application that injects packets using SharpPcap (http://sourceforge.net/projects/sharppcap/). However, since I'm constructing the packets on my own and only know the destination's IP address, I have to determine the physical address of the next hop. I can always send a ping to the remote ip address, sniff it, and get th...

Get the MAC of ASP.NET website user.

I'm looking for a solution to find out about the MAC number of a user using asp.net website. I know you can get an IP address (don't know why but it can't be complicated) but can i find out the MAC address having the IP? Edit: I mean programmatically (not manually) in .NET ...

How to get the MAC address of the visitors' PC in an ASP.NET webApp?

In an ASP.NET (C#) WebApp, I can get the IP of the visitors' PC easily, But How to get the MAC address of the visitors' PC in an ASP.NET webApp? And this ASP.NET app is runing on the inner intranet of our company, and the visitors are also in the same inner intranet of our company. ...

php - mac address

I want to get the MAC and IP address of the connected client using php. ...

Programatically Create DHCP Reservation in C#

I have been assigned the task of creating an application that takes in a MAC address and creates a DHCP reservation for that MAC address. Is there any API built into .NET to easily accomplish this? Thanks, Matt ...