get host name of your redis server code example Example: redis-cli port host $ redis-cli -h redis15.localnet.org -p 6390 ping PONG