got the server to connect to client

however it returns null and doesn't seem to actually do anything