how to find my server's ip address?

Posted April 2, 2020 5.8k views
Ubuntu 18.04

how to find my server’s ip address?

i got my server name but i can not find my server ip address

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @avanishchauhan08,

There are a few ways to do that:

  • Use the ping command to ping your hostname:
  • ping
  • If you are already on the server run the ip or the ifconfig commands:
  • ifconfig
  • ip addr

Hope that this helps!