I am trying to find a solution to get the client's iPad unique MAC/Wifi address. I found some solutions here but it gets the MAC address of the server, but I want the client's address.
Thanks.
It is not possible to retrieve the clients MAC address, the MAC address is determined by the clients hardware and due to many restrictions your web application tipically canĀ“t get it.
I tried various workarrounds using javascript a long time ago without any success.
Here is a more detailed discussion about the same topic:
how to get mac address of client that browse web site by asp.net mvc c#
Related
After doing some research, i am reaching out for some further help or recommendations. If i have a website sitting out on an external network(public facing) and i want to capture information about what client is requesting access to the website, is there a consistent way of doing this regardless of browser or device?
ActiveX is a no go due to install requirement.
ARP seemed promising until it said it doesn't work with routers(sigh)
Using the System.Net and grabbing the MAC addresses looked ok but appeared to also require the clients to be in the same subnet which in this wouldn't work.
Grabbing the IP of the request and then going after the MAC address with that IP seemed promising but fell short when routers come in to play as you get those devices instead of the phone/pc etc.
Is there a way for me to capture the MAC or IP of a client that is outside our network?
I want to get client computer MAC address and IP at the time of login for purpose of uniquely identify the client computer.
To get the user's IP address you can use Request.UserHostAddress or Request.ServerVariables["REMOTE_ADDR"].
Getting the MAC address I am not sure it is so simple. It is not something that is available to the server (ASP.NET) like the IP address is. From what I know you will need to use client scripting and ActiveX or Java applets to get to that information (after multiple installation and security prompts on the users' machines).
So in other words, get IP address by Request.UserHostAddress. Avoid using MAC address and look for another solution if IP is not unique enough for your needs. Maybe combine it with browser User Agent string instead (Request.ServerVariables["HTTP_USER_AGENT"] or Request.UserAgent but the latter might not be available in older versions of .NET).
You can get client IP address from request objects UserHostAddress property like
Page.Request.UserHostAddress
Looks like there is no straight forward way of getting client MAC address except using WMI which other answers already have pointed on.
refer to the below link , may be they will be useful for you...
http://forums.asp.net/t/1911211.aspx?Get+Client+Mac+Address+in+Asp+Net+Web+Application
http://www.codeproject.com/Answers/187064/i-need-MAC-Address-of-client-machine-using-asp-net#answer1
I don't know about networking, but I ask my sysadmin to host my application into subdomain at our official site, for example the official site of my office is downtoearth.com. And then he just ask IP address of my computer where I developed my application, then he said that my application already accessible from myapp.downtoearth.com
I can open my application from that domain, but my problem now is when I try to get my current URL, it give me IP address of my computer. I tried using HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) and HttpContext.Current.Request.Url.Host but it give me the same result, what I want is my domain myapp.downtoearth.com/ not my IP address. Is there some ways to solve it?
My internet office use Proxy, so my computer didn't have an IP public. Of course if it give IP address of my computer, it will get error 404 not found. I use Razor MVC4 and IIS 8.
Sorry if there is some misspelling, English is not my default language and this is my first question at stackoverflow. I hope you understand my problem.
Probably your application is behind some load balancer. You shouldn't use the Request.Url as this is not working as it is expected in all circumstances. In your case the request is treated as local and this is why Url is your IP. Instead you can use Request.UserHostName. Please find this link
I tried many solutions but i'm just getting mac address of the server. I need to get mac address of the client machine. Is this possible to get mac address of the client machine?
If not, is this possible to get any other unique id from client machine?
The short answer is: No
It is not possible to get the MAC address from the client using JavaScript as this will pose a serious security risk.
The only unique id you will be able to get is the IP address, but this will possibly not be unique as the user's machine might be NATed behind a router.
You could use an ActiveX control on Java applet to get the client machine's MAC address, but this would require installation of the chosen method on the client machine and will never be a fail-safe way of obtaining the MAC address.
I'm using HTTPWebrequest to get data from a website. Is there any way I can hide my IP or generate new ones? It doesn't have to be done trough code, a software would also be ok.
PS: I'm not doing anything illegal, it is a project I have for university
Your only answer would be using a proxy, you can find web proxies, or you can download ones that will work on your computer. This will change the IP address that the server will see.