phpsysinfo / phpsysinfo

phpSysInfo: a customizable PHP script that displays information about your system nicely
http://phpsysinfo.github.io/phpsysinfo
GNU General Public License v2.0
1.38k stars 233 forks source link

Add "external IP" #372

Closed Stamgastje closed 1 year ago

Stamgastje commented 1 year ago

I have a feature suggestion.

Currently, phpSysInfo shows the IP address that the web server is listening to. In case the web server is behind a NAT, you thus see the internal IP.

My suggestion would therefore be to add an option to display the external (public) IP as well. This could be requested rather easily from several pubic DNS services as described here:

https://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-a-shell-script/81699#81699

namiltd commented 1 year ago

Try USE_VHOST=true

Stamgastje commented 1 year ago

Thanks, I wasn't aware of that. It seems to serve same purpose indeed.