Started working on network connection.

Connection is made but it is not reliable yet.