I am working on a linux server remotely. Are there any command that can allow me to figure out the IP address of this linux server, so that I can ftp some files to this server.
Asked
Active
Viewed 1,708 times
2 Answers
0
if the remote machine is directly connected to the internet:
hostname -I|cut -f1
otherwise, one of these:
wget -qO - http://whatsmyip.me/
wget -qO - http://ipinfo.io/ip
wget -qO - http://ipecho.net/plain; echo
In all cases, must be run on the remote machine.

gogoud
- 2,672
ifconfig
? – tachomi Jul 08 '16 at 05:30