Second try to make device connect to server correctly.