Also, based on your error message:
Looks like you’re trying to connect to localhost, which is not what you should be doing.