redis-cli -h XXX.XXX.XXX.XXX -p YYYY is the IP address and yyyy is the port

EXAMPLE from my dev environment

redis-cli -h -p 30000


Host, port, password and database By default redis-cli connects to the server at port 6379. As you can guess, you can easily change this using command line options. To specify a different host name or an IP address, use -h. In order to set a different port, use -p.

redis-cli -h -p 6390 ping