Fixed up the mapclient to accept width height ip and port. got it to connect