I am new to PHP.
I would like the IP address when I used the HotSpot screen to display on my web page, I (I only, I modified the hosts file for the HotSpot screen web page), but, unfortunately, this was reflected as 127.0.0.1 The main goal is that when I connect, the IP address that I have set is displayed on the page. Here is the code I used:
<?php $rmt = $_SERVER["REMOTE_ADDR"]; echo "$rmt \n" ?>
The only problem is that $ rmt is 127.0.0.1. Do any of you know how to make it display the public IP address that will be displayed?
source
share