How to prevent Windows from using port 1098-1099?

Document ID : KB000011043
Last Modified Date : 14/02/2018
Show Technical Document Details

When JBoss starts, the following error appears in the log:
java.rmi.server.ExportException: Port already in use: 1098; nested exception is: Address already in use: JVM_Bind

IM 12.5 SPxIM 12.6 SPx Utilizing JBoss 5.x

IMPORTANT: This article contains information about modifying the registry.
Before you modify the registry, make sure to create a back up of the registry and ensure that you understand how to restore the registry if a problem may occur.
For more information about how to back up, restore, and edit the registry, please review the relevant Microsoft Knowledge Base articles on

In order to prevent Windows allocating ports 1098/1099 for random services so that JBoss will be able to use these pre configured ports, we need to modify the registry to reserve these ports.

Use the following steps in order to apply these settings:

  1. Start > Run > regedit

  2. Make sure you take a backup of the entire registry (right click on "Computer) and select export)

  3. After backup has been obtained, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

  4. Edit the key called ReservedPorts and add 1098-1099

  5. Make sure to restart the machine in order for changes to take effect

Figure 1