Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Retrieve computer name


Message #1 by Kushal Kaleshwari <kushalkaleshwari@c...> on Tue, 23 Oct 2001 15:54:13 +0530
Yeah.. If the net admin was good.. Is a tough thing to hang on.. 

But if it was on your local intranet.. You could go arround to all the
systems and tell them to trust your local site. Completely.. (kinda
dnagerous in the event of a security compromise..)

Daniel

P.s. can you do a reverse wins lookup???

--------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
--------------------------

-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...] 
Sent: Wednesday, October 24, 2001 9:06 AM
To: javascript
Subject: [javascript] RE: Retrieve computer name


wow daniel!!!
Good idea, i hadn't even thought of that.

However, there is no real guarantee that the NetBIOS name corresponds to
the dns name. I guess you covered that with the "if the NetAdmin was
good" clause. At least where I work.. that could be a pretty big if :)

-----Original Message-----
From: Daniel O'Dorisio [mailto:daniel@o...]
Sent: Wednesday, October 24, 2001 8:45 AM
To: javascript
Subject: [javascript] RE: Retrieve computer name


Oh ok.. I didn't read the original post till just now... But if you use
the wscript deal.. It is doubtful that they will allow an activex
object.. 

What about a reverse dns lookup?

If you can run asp.. Get the remote ip addr. Then create an instance of
the shell and run nslookup <ipaddr> > results.txt then open results.txt
get the FQDN, take off the first portion(before the dot) and hopefully,
if the network admin was good, it will be the netbios name.


daniel

--------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
--------------------------

-----Original Message-----
From: Joe Fawcett [mailto:joefawcett@h...] 
Sent: Wednesday, October 24, 2001 8:33 AM
To: javascript
Subject: [javascript] RE: Retrieve computer name


Yes but the questionner wants a client-side solution.

Regards

Joe Fawcett



>From: "Daniel O'Dorisio" <daniel@o...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] RE: Retrieve computer name
>Date: Wed, 24 Oct 2001 08:10:32 -0400
>
>Yeah.. Its ASP.. Hence Request.*Server*Variables("REMOTE_ADDR")
>
>d
>
>--------------------------
>Daniel O'Dorisio
>daniel@o...
>www.odorisio-networks.com
>--------------------------
>
>-----Original Message-----
>From: Joe Fawcett [mailto:joefawcett@h...]
>Sent: Wednesday, October 24, 2001 8:03 AM
>To: javascript
>Subject: [javascript] RE: Retrieve computer name
>
>
>And anyway non of this works client-side...
>
>Regards
>
>Joe Fawcett
>
>
>
> >From: "Daniel O'Dorisio" <daniel@o...>
> >Reply-To: "javascript" <javascript@p...>
> >To: "javascript" <javascript@p...>
> >Subject: [javascript] RE: Retrieve computer name
> >Date: Tue, 23 Oct 2001 11:53:23 -0400
> >
> >Remote_addr will give the ip address of the requesting system. This
> >could be fooling if the user is connecting over a router with NAT, or

> >if the user is using a proxy to connect. (heh.. They could be using
> >an outside proxy, and to get to that they are using nat over their 
> >router.. 2 ip changes)
> >
> >Remote_host isnt reliable.. Sometimes It just gives the ip address.
> >Or nothing (if I recall correctly)
> >
> >daniel
> >
> >--------------------------
> >Daniel O'Dorisio
> >daniel@o...
> >www.odorisio-networks.com
> >--------------------------
> >
> >-----Original Message-----
> >From: Selvaraj PT [mailto:PSelvaraj@s...]
> >Sent: Tuesday, October 23, 2001 10:02 AM
> >To: javascript
> >Subject: [javascript] RE: Retrieve computer name
> >
> >
> >Try Request.ServerVariables("REMOTE_ADDR") or
> >Request.ServerVariables("REMOTE_HOST"). You can get the Value in the 
> >Server Side Itself.
> >
> >Pon.
> >
> >
> >
> > > -----Original Message-----
> > > From: Kushal Kaleshwari [mailto:kushalkaleshwari@c...]
> > > Sent: Tuesday, October 23, 2001 6:24 AM
> > > To: javascript
> > > Subject: [javascript] Retrieve computer name
> > >
> > >
> > > Hi All,
> > >
> > > Can anybody write me how to get the computer name where the
> > > browser is running? Is there any javascript way to get it at 
> > > client side?
> > >
> > > Any help would be highly appreciated.
> > >
> > > Thanks in advance.
> > >
> > > Kushal
> > > CSC
daniel@o... 
$subst('Email.Unsub')


  Return to Index