Issue
Getting the following error message when attempting to open a Niagara R2 Enterprise Server station:
ERROR: Cannot open web server socket. [ServerLoop.run] java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.(Unknown Source) at tridium.nre.drivers.SocketDriver$TcpSocketFactory.createServerSocket(SocketDriver.java:681) at tridium.nre.drivers.SocketDriver.createServer(SocketDriver.java:203) at tridium.foundation.net.TWebServer$ServerLoop.run(TWebServer.java:754) at java.lang.Thread.run(Unknown Source)
Product Line
TAC IA Series
Environment
Niagara R2 Enterprise Server all version
Cause
Windows IIS is enabled on Enterprise Server PC. IIS and WorkPlace Pro (station database) have a conflict issue related to Port 80. By default, IIS connects and utilizes Port 80 when installed and running. This directly conflicts with an Enterprise Server’s station database running on the PC which also uses Port 80 by default.
Resolution
Most times, users do not require IIS on the Enterprise Server or WorkPlace Pro PC so IIS is disabled. If IIS is required, users typically change the port used by the station's database to another port (e.g. 8080, etc.). If this change is made, all other settings that access this IP for the station (address table entries, web browser pages, etc.) must append the port number to the IP address (e.g. 192.168.1.142:8080).
Disable the IIS if not required by some other application on the Enterprise Server PC.
- Select Start and open the Control Panel
- Double-click add remove program
- Click on “Add/Remove Windows Components on left side on screen
- Scroll down and deselect Internet Information Services in the Components window
- Click next and Finish
The Enterprise Server station can now be opened.
Note: On Windows 7 host computer, the World Wide Publishing Service may be linked to IIS. Go to 'Services' in Windows 7 and modify its startup to 'Manual' so that it does not start automatically.
If IIS is needed on the Enterprise Server PC, then change the port used by the Enterprise Server.
- Open WorkPlace Pro Admin Tool and stop the Enterprise Server
- Open the Enterprise Server offline
- Right-click on the Enterprise Server station and open its Properties sheet
- Click on the Config tab
- Change httpPort to the desired port number and click Apply
- Right-click on the Enterprise Server and Save
- Close the Enterprise Server station
- Open Admin Tool and start the Enterprise Server station
Once the station starts you should now be able to access it. Please note that the port number must now be included in the station's address when accessing the Enterprise Server.