Adding this here to maybe help other new users (like myself).
Had the same problem on a Windows 8.1 machine. Could not get to the Web UI using http://localhost:8080. Realized/remembered that I have security camera software that uses that port – which I preferred to not have to change.
Could not find anywhere how to change the Openhab port on Windows. Here’s what finally worked (at least when running OpenHAB2 as a service):
Open/edit “C:\OpenHab2\userdata\etc\ openHAB2-wrapper.conf”
Add the following two lines just below “set.default.OPENHAB_HOME=C:\OpenHab2”:
OPENHAB_HTTP_PORT=8085
OPENHAB_HTTPS_PORT=8443
The following may or may not be necessary (I have not yet confirmed if it is needed or not but I made this change it is working when run as a service):
Open/edit “C:\OpenHab2\runtime\bin\setenv.bat”
wrapper.java.additional.16=-Dorg.osgi.service.http.port=8080
change to:
wrapper.java.additional.16=-Dorg.osgi.service.http.port=8085
Then, follow setup/install instructions:
Using: “zulu8.28.0.1-jdk8.0.163-win_x64” (default installation is Program Files directory).
Have not done further testing but initially the above did not seem to work when running the start.bat script but did work when running as a service. Changing only the setenv.bat entry alone did not work by itself, which is why I concluded it may not be necessary at all to run s a service.