Get Client IP and MAC address in ASP.Net

on Oct 20, 2021 12:25 AM

Dear All,

Please help me to get the client's (visitor's) IP address and MAC address in

I have checked many functions over the internet but they are returning the server's IP.

Please help as we have to implement a log table of visitors to our portal.

Download FREE API for Word, Excel and PDF in ASP.Net: Download
on Oct 20, 2021 12:31 AM

Hi thesanjayduda...,

You won't be able to get the client's MAC address as that information is not provided over the http protocol.

Use IPAddress to identify users.

It only work for Intranet (local server) not for Internet.

Get MAC Address of a machine in Local LAN network in ASP.Net

To identify user you can use IP address.

How to get IP Address of Visitors Machine in ASP.Net