Network Setting Howto

In the first paragraph of the Network Settings Howto web page regarding the RMI start port, it says “If this port is already in use, the server will use the next higher available port. This port must be reachable by the client at all times, and thus must not be blocked by a firewall.”

Is it good practice to open several ports above 1099? If so, how many?

Paragraph two first defines the RMI server hostname as “the hostname or IP address that clients will be told to connect to.” Then it says that “the setting must be used…” and describes when. Then it refers to the use of 127.0.0.1 for Linux systems. Then it says “In almost all cases, the setting can be left blank.”

Techs have come back to me and quoted this paragraph saying that 127.0.0.1 should only be used for Linux systems, which I understand is not true. Perhaps the reason they think this is that the only other reference to 127.0.0.1 is under item 3 of paragraph three.

The last sentence of the paragraph “In almost all cases, the setting can be left blank” seems contrary to other advise on this list that says “If you have to use the server over the internet then 2waysocket has to be enabled. If you then also use the server local and over the internet then you have to set the rmihost name to 127.0.0.1 so most of the time when you use 2waysocket then also set the rmihost name to 127.0.0.1. That should work the best in all the cases when the clients are not on the same network.”

that last sentence is the right one.

If you use (or must use) 2waysocket then set the rmihostname to 127.0.0.1

If you don’t use 2waySocket then you can leave the rmihostname blank for the most time because you are then using servoy on an internal network, which can connect to the servoy server directly (if not directly then you have to set the rmihostname to the gateway/router/firewall server)