How to get your ip address thats shows in whatismyip

how to accually get the ip address from this site by using a server but cant use any web browser?
help . i dont mean the local ip i mean the ww ip for the console it self

Hi there,
If your server is physically by your side then your ww ip is the ip of the router as far as it connects to the same router else if your server is a vs hosted by a company type ifconfig to the terminal and look for an iface which is not lo.