Create connect.java

Server-side file