Connection and packet exchange finally working