Jump to content

Get hostname of my computer


jamw3
 Share

Recommended Posts

Client computers don't generally have hostnames (except within LANs) - you can get the IP address using PHP's $_SERVER array and its "REMOTE_ADDR" index.

Link to comment
Share on other sites

JavaScript (the DOM, really) is very particular about interactions with the client's browser and operating system. Most data and processes outside your actual document are usually forbidden. IE makes more exceptions to this policy than I think it should. The tendency in browser evolution is actually to increase this kind of security.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...