473,406 Members | 2,352 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,406 software developers and data experts.

Running client commands from asp.net app

Is it possible to develop a control to run a small executable on a client
machine from an asp.net application? I am trying to automate getting the mac
address of each computer in a large office and I'm hoping to find a way to
run the getmac command on each pc from a web application so I can store it.

Any help would be greatly appreciated.

Chris
Dec 16 '05 #1
3 1252
You would have to write something like an ActiveX control to do this. You
cannot do this in .NET.

"clsmith66" <cl*******@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
Is it possible to develop a control to run a small executable on a client
machine from an asp.net application? I am trying to automate getting the
mac
address of each computer in a large office and I'm hoping to find a way to
run the getmac command on each pc from a web application so I can store
it.

Any help would be greatly appreciated.

Chris

Dec 16 '05 #2
I'm not the expert here, but if a client uses your web app, you
automatically get his IP address and I think you should be able to
resolve the IP into the MAC address.

Remy Blaettler
www.collaboral.com

Dec 16 '05 #3
I am not an expert either, so take my response with a grain of salt.

Since MAC addresses are not publicly visible (meaning they are not used for
Internet packet routing between subnets), I do not think that the IP address
can be used to resolve the MAC address. In addition, proxies and routers
may hide the actual machine that is making the request. Most companies
probably use some form of Network Address Translation so the public IP that
the remote server sees will belong to the routing device, not the machine
making the request.

Now as I read his message closer, he does mention that it is in a large
office so it might be within the same network. If that is the case, you are
right that he could find some tool or something that invokes the Address
Resolution Protocol
(http://www.erg.abdn.ac.uk/users/gorr...ages/arp.html). I am
sure there are many implementations already available.

Also, if you are an admin on each machine, you might be able to use
something like WMI to enumerate and interrogate the machines on the network.
Never used WMI so I do not know what services it provides.

"Remy" <rb********@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I'm not the expert here, but if a client uses your web app, you
automatically get his IP address and I think you should be able to
resolve the IP into the MAC address.

Remy Blaettler
www.collaboral.com

Dec 16 '05 #4

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

Similar topics

0
by: Will Seay | last post by:
At the end of this message I've pasted a script we're trying to modify slightly. I don't believe it is VBscript or javascript but these are the closest groups I could find with my limited...
1
by: stealthwang | last post by:
I'm still very new to Python, after decideding to learn a true programming language (rather then a scripting language, i like to think i'm a intermediate PHP user). I decided for my first project I...
5
by: Tyler Hudson | last post by:
After reading Erland Sommarskog's most enlightening articles on SQL Server 2000's error handling capabilities (http://www.sommarskog.se/error-handling-I.html and...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
1
by: GB | last post by:
For various connectivity reasons to my employer's network, I frequently find myself using the telnet-based DB2 client for Sun. Unfortunately, on this client: - The return key submits an SQL...
17
by: JStemper | last post by:
On one of my localhost sites I'm getting a message to run aspnet_regiis -c to correct some scripting issues. When I try to run the listed command I get another error: "You must have...
4
by: Webster | last post by:
Hello, What's the best way to run a client-server interaction using some standardized protocol such as nntp?? That is, should you run a thread that just does a receive loop from the server so...
10
by: Don Curtis | last post by:
I have a C# client app that sometimes needs to do thousands of specialized file renames of files on a file server in the same domain. If the files reside locally on the client machine, the renames...
8
by: Ravi | last post by:
Hi to all, There is a start button in my page. if user clicks on that then a php program should start and should listen on a particular port. and also user should able to do other tasks on...
5
by: scorpionbilli | last post by:
Hi, The local mysql server is running on my Macbook. I can access it through the console client: $ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.