Opening ports automatically

Use the rhapsody.ini file to set ports to open automatically.

About this task

If you want the product to locate an open port automatically for animation, change the values of the following variables in the [General] section of the rhapsody.ini file:

  • AnimationPortNumber defines the port to try first
  • AnimationPortRange specifies the number of ports to test, in addition to AnimationPortNumber, before giving up

These changes set up the search to start with the AnimationPortNumber and increment by one until either an open port is found or until the number of tries equals the value of AnimationPortRange + 1.

For example, if AnimationPortNumber = 5000 and AnimationPortRange = 100, The product first attempts to establish a connection on port 5000. If that fails, then it tries port 5001. If that fails, then it tries port 5002. This search continues until either an open port is found or until it finally tests port 5100. If port 5100 fails, then no animation can be performed for that instance of Rhapsody® .