Click to See Complete Forum and Search --> : How 2 identify the PC id


Caliban
07-24-2003, 10:15 AM
Hi,
is there any way to identify/show the id of any PC which is connected to a given page/website in an intranet?

it's not for audit purposes or hacking (Never!!!), but only to display the id of the PC in the page, when it is connected to my intranet site.

I heard it is possible to do that, using ASP, the only problem is that we don't use ASP but PHP+JavaScript :)

Any ideas?

Thanx in advance.

Khalid Ali
07-24-2003, 10:56 AM
in PHP something like this will work

print("SERVER NAME = {$_SERVER['SERVER_NAME']}<br/>");
print("MACHINE PORT = {$_SERVER['REMOTE_ADDR']}<br/>");

Caliban
07-24-2003, 11:17 AM
Hi Khalid,
thanx for your kind response.

but ... the code you to send me, shows the web server name and the IP address of the computer, respectively.

i.e, if my computer name is DF0004356, my IP address is 10.332.543.655 and the web server is looneytones.com

the sentences
print("SERVER NAME = {$_SERVER['SERVER_NAME']}<br/>");
print("MACHINE PORT = {$_SERVER['REMOTE_ADDR']}<br/>");

will show:
SERVER NAME = looneytones.com
MACHINE PORT = 10.332.543.655

but they don't show the internal name of my pc, that is: DF0004356

So, the idea is not only to show my IP address there on the page,
but what my PC is called in My Computer => Properties => Computer Name.

Thanx In Advance, and i'll keep on getting good ideas from all of you, JS Gurues :D