473,657 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to grap computername

Ryd
I'm looking for at asp script that grap the clients computername when
they access a local http site. The client and server is in a local
domaine.
Jul 19 '05 #1
2 1450
You'd have to use the server to resolve the name of the IP address of the
client machine. Here's a flakey method that may work most of the time.

<%
Dim sIP
Dim oShell, oExec, sCommand, sOutput
sIP = Request.ServerV ariables("REMOT E_ADDR")
sCommand = "%comspec% /c @echo off & for /f ""tokens=2" " %q in ('ping -n
1 -a " & sIP & "^|find /i ""pinging"" ') do echo %q"
Set oShell = Server.CreateOb ject("WScript.S hell")
Set oExec = oShell.Exec(sCo mmand)
sOutput = sOutput & oExec.StdOut.Re adAll
Set oExec = Nothing
Set oShell = NOthing
Response.WRite sOutput
%>

Ray at work

"Ryd" <ry******@hotma il.com> wrote in message
news:68******** *************** **@posting.goog le.com...
I'm looking for at asp script that grap the clients computername when
they access a local http site. The client and server is in a local
domaine.

Jul 19 '05 #2
Hallo Ray
Thank you vary much.

It just works fine.
Ryd
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

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

Similar topics

9
2485
by: vishal | last post by:
i have created one page in asp login.php on my pc it is working as http://localhost/index.php but when i access this page from other computer in network it is not working pls help me thxs for your reply in adavance...............
2
7667
by: dthmtlgod | last post by:
I am attempting to retrieve the computer name of a remote user accessing our websever. I have tried the following and both don't work. Any ideas? Returns the webserver computer name Set WshNetwork = CreateObject("WScript.Network") response.write (wshNetwork.ComputerName) Also tried this and I get a permissions error.
7
2953
by: Mindy Geac | last post by:
Hello, i'm new with ASP! How can I display the hosting computername on the website, We have 2 servers and I want to know which server I'm getting the asp pages from. thnx, Mindy
2
6584
by: Todd | last post by:
Is there a method I can use in C# that will set the ComputerName? Any Help would be appreciated. Thanks Todd
1
1351
by: Jason Shohet | last post by:
i'm using C#, would like to get the computerName of the machine on a windows2000 network. TY Jason Shohet
2
1823
by: Joseph | last post by:
Has anyone had any experience gathering the local computername through a web application with no client side program. I've been researching different avenues and have been coming up blank so far. I'm working in a Intranet Env with Active Directory and all Windows XP clients. My end goal is to actually have an active desktop component that is branded for the company with other user and computer specific information that will help the IT...
0
1223
by: amjad | last post by:
Dear All, I am using Visual Studio beta 2005 beta 2 with ASP.Net 2.0 and C#.I run the application and it work correctly with http://localhost:port/projectname/page but not with http://computername:port/projectname/page on other computer in the network or even on the same computer with http://computername:port/projectname/page what we have to do to make web application running running on other machine in the network.I select File Systems...
1
2966
by: luca72 | last post by:
Hello at all. I need to do a real time plot where on the frame i have this like limit line: import math dati = for freq in range(int(freqiniziale), (int(freqfinale )+ 1)): forza = float(massa) * ((2*math.pi*freq)**2)/10 dati.append(forza) ax1 = subplot(111) plot(dati)
1
2664
by: usman211 | last post by:
i m using the following code for IP and ComputerName, it run accurately with our LAN but when i run it from some remote/hosting servers(like godaddy where the site is hosted) it get the IP of my insernet service provider not of my PC and he return the ComputerName with the same of an ip... for example it returns(from godaddy):: IP: 203.202.202.33 ComputerName: 203.202.202.33 string clientIPAddress = Request.UserHostAddress;
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6169
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.