@RichardM
start /D%FOURJS_HOME% /NORMAL /B C:\appsdir\fourjs\gdc\bin\gdc.exe -p %PORTNO%
set FGLSERVER=<server ip>:%PORTNO%
The port number arguments should be 6400 different. So if it is gdc -p 6401, then FGLSERVER=<server-ip>:1
Note the explanation here
http://4js.com/online_documentation/fjs-fgl-manual-html/index.html#c_fgl_EnvVariables_FGLSERVER.htmlYou may also want to investigate using GDC short-cuts including specifying them from the command line with -S or (-s,-H,-U-C)
http://4js.com/online_documentation/fjs-gdc-manual-html/#c_gdc_cmd_line_options.html. That is make the GDC responsible for setting FGLSERVER and launching the fglrun rather than your batch script.
@Bryce
Is setting a different port for each client a requirement of one of the other connect methods?
You are familiar with the situation where everyone has their own PC, and a GDC running on it using port 6400. With Windows Terminal Servers, Citrix Server type solutions, there is in effect one server running multiple instances of GDC for multiple users. In this scenario, each running instance of the GDC on the Windows Server is using a unique port number.
Reuben