connecting server and interface