473,395 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Find out the MAC-Adress of a server

Hi everybody

My application is running on a share on the server.

On Starting the application I would like to check the mac-adress of the
server, but the only information i have is the share path.

How can I get the mac-adress of the server which is sharing the drive?

Thanks alot

Nijazi Halimaji
Jun 27 '06 #1
1 1079
try this

ManagementClass myManagementClass = new
ManagementClass("Win32_NetworkAdapterConfiguration ");
ManagementObjectCollection moc = myManagementClass.GetInstances();
foreach(ManagementObject mo in moc)
{
Console.WriteLine(mo["MacAddress"].ToString());
}

Regards

John Timney (MVP)
"Halimaji Nijazi" <te**@hotmail.com> wrote in message
news:e5****************@TK2MSFTNGP03.phx.gbl...
Hi everybody

My application is running on a share on the server.

On Starting the application I would like to check the mac-adress of the
server, but the only information i have is the share path.

How can I get the mac-adress of the server which is sharing the drive?

Thanks alot

Nijazi Halimaji

Jun 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Daniel T. | last post by:
I'm writing a script for work and to finnish it, I need two bits of information which I'm having trouble finding. 1) How can I programatically find the MAC address of the machine? Is it stored...
3
by: dbarchitech | last post by:
hi, i'm building a query to find narrow ranges of zip codes within broader ranges in a table (for tax purposes). for example: LOW_ZIP HI_ZIP 23400 23499 need to find 23401 ...
1
by: christine.nguyen | last post by:
I'm using offset values to find the x,y position of an iframe on an html page. The code works in all browsers except in Mac explorer 5.x. Does anybody have any ideas how to get around this?? ...
13
by: Jay | last post by:
I need to write a program to find mac address of a remote computer, is this possible? How?
29
by: chellappa | last post by:
hi all I need to write a program to find mac address of a my computer using libaries, is this possible? How? thanks
4
by: Arun | last post by:
Like its possible to find IP address of a visitor in same way is it possible to find the visitor's PC's MAC address? -Regards,
4
by: UJ | last post by:
Is there any way to find out the actual MAC Address that a request comes in from? We are trying to get a way where we can limit access to specific machines (TCP/IP isn't good enough - we want to do...
2
by: muttu2244 | last post by:
Hi all, 1) Am working on windows XP, and is there any way i can get the whole name as "windows Xp" using python script? i have tried with "os.sys.platform" but it just gives me as "win32",...
0
by: nit22 | last post by:
If I find the data in excel through word vba in mac, the find statement automaticaly closed the word document. But this coding is working in Excel vba. I don't know the problem please help me. ...
5
by: YaoBao | last post by:
Is any ColdFusion script I can put on my webpage that will create a search bar so people can type keywords to match it on the current page in my website? It will be exactly like the finder search bar...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.