as far as 3dgs is concerned, the connection between the client and the server is automatic. As long as you add -sv to the command line parameters of your games exicutable file for the server, and add -cl to the executable for your players exicutable. and give it the IP address ( -ip 66.22.564.345.....or whatever your IP address of the server is) then it will connect on its own...they find each other..
Not sure if that was what you was asking or not though.