Look at TExampleDispatcher. All the demos set up just one of these
per set of Croquet worlds. (This is done in
CroquetHarness>>createIsland:named:, and KMessageRouter
runRouters:serverName:serverPassword:log:.)
The #listenOn: method (in the TConnectionDispatcher superclass) takes
a port you specify as argument. The default is 0, which I gather
makes the operating system pick an available port.
I always specify a port of my choosing.
Only the one machine running the dispatcher needs to have that one
port open on the firewall. Everybody else needs to be able to
initiate their own outgoing connection to that one port on that one
machine.
For info on exploring the code, see
https://lists.wisc.edu/read/
messages?id=1597602
On Jan 18, 2007, at 4:15 PM, Mike O'Brien wrote:
> I Googled for this and found nothing useful. What
> ports does Croquet need open on a firewall in order
> to hook up over the net? I'm talking about the
> Demo Master and the Demo Client in the Croquet 1.0 SDK, here.
> I had to turn off the firewall on both machines to get them
> to connect.
>
> Mike O'Brien
>