Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
i install my software in the client .i want to how many system are using my software.i want there system name and mac .Give some example.please help me....
Posted 7-Jan-13 17:26pm
Comments
Dave Kreskowiak at 8-Jan-13 0:14am
   
Without knowing what type of application you're writing (Win Forms, WPF, ASP.NET, MFC, ...) it's pretty difficult to tell you what needs to be done, and IF it can be done at all.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi kalisiddayya,
 
Try This :
 
Imports System.Net
'-----------GET MACHINE NAME--->
MachineName = System.Environment.MachineName
 
'-----------GET IP ADDRESS OF THE MACHINE NAME--->
Dim myIPs As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(MachineName)
For Each myIP As System.Net.IPAddress In myIPs.AddressList
IPaddress = myIP.ToString()
Next
'-----------GET MAC(PHYSICAL) ADDRESS OF THE MACHINE NAME--->
Dim theNetworkInterfaces() As System.Net.NetworkInformation.NetworkInterface = System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
For Each currentInterface As System.Net.NetworkInformation.NetworkInterface In theNetworkInterfaces
MACAddress = currentInterface.GetPhysicalAddress().ToString
Exit Sub
Next
 
I found this after a google search here : http://www.dotnetspider.com/resources/36826-Get-system-IP-Addr-MAC-Addr-Computer-Name.aspx[^]
  Permalink  
v2

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



Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100