[SOLVED] HowTo: change the default 8080 REST API port for OH2?

HowTo: change the default 8080 REST API port for OH2?
Is it possible?

:open_mouth:
For the time being I was able to change the REST API port on deCONZ, but then the Hue binding can’t find the Bridge as it is probably tuned into 8080 …

Currently you can use the --http-port= command line option to specify the REST API server port. (on deCONZ)

Stop openhab

Edit the file:
/etc/default/openhab2
Uncomment the line:
#OPENHAB_HTTP_PORT=8080

And change the port number

Restart openHAB

1 Like

Nice.
While waiting I figured out how to change port on deCONZ running as a systemd service, so I keep OH2 on
default. That way my tasker rules stays the same as well. :slight_smile:

sudo nano /etc/systemd/system/deconz.service

Think I will leave a hint of this in the doc, or would you do it?

I don’t know what is deCONZ so you go ahead.