How to get remote server's ip?

9,106

I used

curl ifconfig.me

It is a web service that returns originating IP address. Other information is also available, including

curl ifconfig.me/host # hostname
curl ifconfig.me/ua # user agent
curl ifconfig.me/forwarded # proxy settings
Share:
9,106

Related videos on Youtube

noclueboy
Author by

noclueboy

Updated on September 18, 2022

Comments

  • noclueboy
    noclueboy over 1 year

    I've got the server's adress and I don't know how to get its ip adress. I have an access via ssh and I need it so bad, please help. (As for your information I've been looking for this for some time, seriously :/ )

    • yprez
      yprez over 10 years
    • yprez
      yprez over 10 years
      How do you connect to it with ssh if you don't know it's ip? If you use a domain name, then you can run nslookup on the domain, or even ping.