PHP retrieve remote domain - TechRepublic
General discussion
October 18, 2005 at 11:54 AM
luschen1611

PHP retrieve remote domain

by luschen1611 . Updated 20 years, 7 months ago

Is there a way to find the domain name that the remote computer is connected to? This is for an authentication setup to allow access for a specific network. I have tried exec(“ipconfig 2&>1”, $output) and shell_exec(“ipconfig /all”) but it doesn’t give me what I need for 2 reasons: 1. it doesn’t have all the information, including the domain name 2. it retrieves the information from the server, not the remote computer.

Any suggestions?

Thanks
Troy

This discussion is locked

All Comments