/    Sign up×
Community /Pin to ProfileBookmark

How 2 identify the PC id

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.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 24.2003 — in PHP something like this will work

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

print("MACHINE PORT = {$_
SERVER['REMOTE_ADDR']}<br/>");
Copy linkTweet thisAlerts:
@CalibanauthorJul 24.2003 — 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 ?
×

Success!

Help @Caliban spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...