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

Retrieve computer name

Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...
Jul 19 '05 #1
4 5441
The CLIENT pc name.....Can't be done, nor would there be any valid reason.
It's a trivial text string at best that has zero guarantee of uniqueness. Go
for a login name instead.

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Matt" <me@2me.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...

Jul 19 '05 #2
having a logged in username would still be better. If a user is at a
different PC you'd get incorrect results. Besides, as I mentioned it's not
really possible. You'd have to use a clientside component or it might be
possible if you drop the IE security settings to a dangerously low level.

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Matt" <me@2me.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
I have just joined a company that has over 200 PCs... and have implemented a helpdesk system. Because I don't know anybody at all, it is much easier for me to identify by computer as the bulk of our users also roam from PC to PC. It is only to be used in the intranet, therefore it is a perfectly valid
reason.


"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The CLIENT pc name.....Can't be done, nor would there be any valid reason. It's a trivial text string at best that has zero guarantee of
uniqueness. Go
for a login name instead.

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Matt" <me@2me.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...



Jul 19 '05 #3
"Matt" wrote:

I have just joined a company that has over 200 PCs... and have
implemented a helpdesk system. Because I don't know anybody at
all, it is much easier for me to identify by computer as the
bulk of our users also roam from PC to PC. It is only to be
used in the intranet, therefore it is a perfectly valid reason.


If you truly want to identify the machine rather than the user, the IP
Address may be sufficient (even if DHCP is in use in some circumstances**).
Take a look at Request.ServerVariables("REMOTE_HOST"). All bets are off if
you're using a proxy.
**In my environment, for example, the IP Address is reserved unless the
machine is off the network for over 20 days.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #4
depending on your configuation you could use request.servervariables. Check
this out:

http://msdn.microsoft.com/library/de...om_reqocsv.asp

I don't think it will work the way you want if you have Private IP
addresses. I think if you have public IP's it will work.
--
--
In honor of Ross
--

"Matt" <me@2me.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...

Jul 19 '05 #5

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

Similar topics

2
by: TIML | last post by:
I have tried using servervariables("XXX") to request the username and computer name of the individual running code on our internal server, but what I want and can't seem to capture is the user's...
3
by: Vangelis | last post by:
Hi, I'm currently successfully retrieving the list of computers connected on the differents domains of our network via the System.DirectoryServices.DirectoryEntry class. What I'd like to have...
2
by: Dan | last post by:
All, I need to be able to retrieve a list of Domains that are part of our network: similar to the list you get when you log onto a Windows station that is part of a domain. I assume that I can...
2
by: Stefke | last post by:
Hi, I want to write a little application with a textbox in which I can enter a systems host name or ip address. After clicking on a button Get Info, I want to display an overview of the systems...
3
by: Bruno | last post by:
Hello Friends I have a big problem. I can't retrieve the domain name (example: contoso.com) using visual basic.net language. I'm very appreciate if anyone give me an example how can I solve...
5
by: tjonsek | last post by:
I am trying to pull the user logon info in an application to use as a security stamp when someone completes a function. So far, I am able to retrieve the computer name. This is, however, not what...
5
by: tjonsek | last post by:
I am trying to pull the user logon info in an asp.net application to use as a security stamp when someone completes a function. So far, I am able to retrieve the computer name. This is, however,...
13
by: no.mail.pls | last post by:
Hiya, How do i retreive fields with similar values from 2 tables? I tried to use (1) "SELECT * FROM $table1 as o , $table2 as p WHERE o.name like '%p.name%'"; but it retrieves nothing at...
1
maxamis4
by: maxamis4 | last post by:
Hello folks, Here is the backgroup. I am creating an agent that can find a user in LDAP and return the last logon date. Now i am not sure if with active directory you can user the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.