How to bind an application's port to a remote host with public IP?

Answered

I have redis server running on one server. By default it listens to port 6379. When I open the redis conf file I see something like this

bind 127.0.0.1

Since my redis client resides on another remote server which is not in the same network as this, I need to bind this to the public IP of the redis client. Something like this 

bind 54.23.x.x

And I don't want to specify bind 0.0.0.0. When I try that and restart redis server, I get the following error

bind : cannot assign requested address

In general how do I bind an application to a specific public IP ?

 

 

 

MyCCPay

1 comment
Comment actions Permalink

I guess it's better to ask Redis Community.

0

Please sign in to leave a comment.