Jump to content

Assign problem to computer


xionhack

Recommended Posts

Hello. Im making a help desk application that the people in my company will be able to access from their computers to say if they have any computer related problem. The thing is, it wont be possible for me to make a login and password for every user, i cannot assign the problem to the ip or to the hostname because they are not static (by assign I mean to say who the problem belongs to). I want to see if there is a way for me to assign it to the computer itself, or make a way to identify which computer is it through php, i know php is server side but how can I do what im trying to do? Please let me know if Im not being clear

Link to comment
Share on other sites

Matthew you are interpreting this wrong:

 

Im making a help desk application that the people in my company will be able to access from their computers to say if they have any computer related problem.

 

As you have access to each computer you can set a static IP for each computer or set the DHCP server to lease an IP longer 1-week, 1-month, ...

 

Get the IP of the computer using:

 

$_SERVER['REMOTE_ADDR']

Link to comment
Share on other sites

There are more than 1000 computers and most of the servers lease the ip for about 8 days

 

How long does it average take before a computer problem is solved? Like I said you can set the DHCP server to lease the IP longer. PHP can't read out any other information and using JS to read out MAC addresses isn't the best approach either as JS can be disabled.

 

Actually none of both methods are good in your situation, I would look into .NET as they allow communication with the Windows client with some imagination you can create something that will exactly pin-point the computer, like for example a big floor plan that visualizes every computer and lights up red when an error is reported.

Link to comment
Share on other sites

in yuor first post you said " in my company "

 

so, you can decide about computer-names, and you can disallow users to change the name of a computer

(network-policy, i.e.: http://technet.microsoft.com/en-us/library/cc771624(WS.10).aspx)

 

if that is arranged, you should use one of the 1st options givven here:

 

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
Link to comment
Share on other sites

I know how DHCP works... what does that have anything to do with gethostbyaddr()? I haven't dug into that function much, but I would assume it is doing a name resolution with a ping... the ping of any dhcp address is going to resolve to the hostname of the system it is currently being run on... the host name does not change so whether I get handed 192.9.200.100 or 192.9.200.101, gethostbyaddr() is going to resolve to the hostname of the computer... what is in question here is not what address they have, but what physical computer had that address at the time.

 

Not sure why that is confusing, but okay :)

 

I have a small help desk app that does exactly this... so, it must be magic that it works for me then?

 

 

Link to comment
Share on other sites

Hey Matthew, yes I think Im going with that solution, at the end even if I change the  computer name because that computer was given to somebody else, I dont want them to see the problems that the previous person had. Thanks for everything

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.