Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
C#
protected void Button1_Click(object sender, EventArgs e)
   {
       NetworkInterface[] nic = NetworkInterface.GetAllNetworkInterfaces();
int j=0;
       PhysicalAddress add = nic[j].GetPhysicalAddress();
           Label1.Text = add.ToString();
           
       }


i get mac address through the above code...but using mac address i want to find location.
Posted
Comments
Richard MacCutchan 28-Mar-14 7:26am    
You can't; the MAC address has no relationship to the physical location of the system. You can use IP address at best.

1 solution

Please, read comment to the question.

Here is an idea: Easy to Track the Geographical Location Based on IP Address (C#)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900