Limiting the Range of Ports for Java-COM Communication |
|
The following example scenario (Java client accessing a COM component on remote machine) will demonstrate how to do this.
You'll need to experiment with the JINTEGRA_LOCAL_PORT_START and JINTEGRA_LOCAL_PORT_END properties on the Java side to limit the range of ports the client uses.
On the server side, you'll need to limit the port range for the COM component. To do this:
- Launch DCOMCNFG
- Click on the Default Protocols tab
- Click on Connection-Oriented TCP/IP
- Add the required port range (note that this setting will be used for all components - we are unsure if there is a way to specify for a single component).
This should now limit both servers to the specific port range.