Jump to content

Get hostname of my computer


jamw3

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...