By using listenaddress=192.168.0.10 you are binding the listener to that specific interface. localhost will typically resolve to ::1 or 127.0.0.1, neither of which will match 192.168.0.10. You can use listenaddress=0.0.0.0 to listen on all interfaces, this may also solve the issue.