how to find my server’s ip address?
i got my server name but i can not find my server ip address
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Hi there @avanishchauhan08,
There are a few ways to do that:
ping
command to ping your hostname:ip
or theifconfig
commands:Hope that this helps! Regards, Bobby
If you’re using the
ip
utility from the (Debian/Ubuntu)iproute2
package, you can see all configured IP addresses on your system using:This can be shortened to:
You are likely to only be interested in your main network device: on DO VMs, this has the public-facing IP address. To get info for just this network adapter:
Some very old installs may still use the old (now deprecated)
ifconfig
command (from the nettools package). This is not the preferred way of handling IP addresses in Linux but here’s the command in case needed:i got my server name but i can not find my static server ip address