I use this code to understand some information of visitors (clients). It has been running on my virtual server on Xampp, but I can`t run on my main server (host). I see just a b
This would only get the servers IP information not the client. Because you are running the code on your local PC you will see your local information (which will be the same as the server information).
Also if your hosts server is running linux, the command would be ifconfig
, but that would still only get the server information.