Is this the way to check the ip of a server?
how I check the IP of a server is hostname -i
, which gives just the IP
if you want more information about all the IPs on your system (like the loopback, etc) you could use ifconfig
(like you're currently doing) or just ip a
. Both should give you the same info and you could determine from that which IP(s) you are interested in whitelisting.