Connecting to and from server working

Server can now send packets to the client and vice-versa