Changing OH2 ports on windows 7

I’m installing OH2 for the first time, but I already have something bound to port 8080. I have tried to search for an answer but all the answers I find are either linux related, refer to files that do not (yet) exist for me, or tell me to change settings if files that are currently empty.

Please can someon ELI5 how to make it so that OH2 starts on port 8085?

edit C:\openHAB2\runtime\bin\setenv.bat

set HTTP_PORT=8085

It should work (I haven’t tested it myself yet)

1 Like

It worked, thank you!

1 Like