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

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 ?

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like