Cannot connect to server

A fix for #8