• host_name() will return workstation IP address, the computer that calls this code. In order to get server IP, you should stick to ipconfig