Make server connect to correct hostname
Add example in readme