How to get a server's public IP?

I need to get a server’s public IP from an addon.

I just dont know what to look for.

‘ip’ just brings back ‘localhost’ and ‘hostip’ brings back a very small minus number and there is no function for it.

HOW??!!! I mean, typing ‘status’ into console will bring you the server ip, so how does it know?

you’re living up to your username, i see

you could try using PHP hosted elsewhere that forwards you your own address, and load it using http.Fetch/Post, but i think that’s beyond you

[editline]19th July 2015[/editline]

why would you need this?

To track people with his backdoor, duh

Of course, why otherwise??? -_-

Im just trying to get the server IP.