I am trying to write a code to get IP of a computer.
I have written the following code :
echo "<font face='Verdana' size='3'><b>IP Address= $ip</b>";
But the output I am getting is :
IP Address= 127.0.0.1
i.e the common IP for all machines, what is the code to get the actual IP of a machine such as 126.96.36.199?