Page 1 of 1
changing port on Windows installation
Posted: Thursday 25 October 2018 9:50
by Mambobuzzz
Hi,
I would like to change the port to which Domoticz is listening to. I see tutorials for other platforms but none for Windows.
How can I change it? Is it a config file? Or DB?
Thanks,
Mambobuzzz
Re: changing port on Windows installation
Posted: Saturday 03 November 2018 17:47
by Mambobuzzz
Hi there! No one? Where is the configuration of the HTTPS under Winodws? Changing the .exe shortcut doesn't help. :/
Re: changing port on Windows installation
Posted: Saturday 03 November 2018 18:04
by zak45
Mambobuzzz wrote: ↑Saturday 03 November 2018 17:47
Hi there! No one? Where is the configuration of the HTTPS under Winodws? Changing the .exe shortcut doesn't help. :/
Do you have made any search in the forum

e.g. :
viewtopic.php?f=4&t=22439&p=173411&hili ... r#p194389)
Re: changing port on Windows installation
Posted: Sunday 04 November 2018 11:58
by Mambobuzzz
Hi,
For sure i did! I'm googling since days. I've tried the shortcut modification => application won't start any anymore. I've tried the registry modification => doesn't work. I've tried the service file under sysyem32/drivers modification => no luck. I've tried reinstalling (as service Arkwrigh as well as application) => doesn't change anything.
Where is the port configuration on Windows?
Thanks !
Re: changing port on Windows installation
Posted: Sunday 04 November 2018 12:48
by zak45
Just tested on my installation on it's work:

- Capture.JPG (92.69 KiB) Viewed 2341 times
Re: changing port on Windows installation
Posted: Sunday 04 November 2018 17:14
by Mambobuzzz
Thanks for your answer. I've tried it again. But now deleted Domoticz. The port is the right one in the registry. But the application doesn't answer to it and keeps on answering on the old one!

Re: changing port on Windows installation
Posted: Monday 05 November 2018 9:22
by Mambobuzzz
The good thing is that I'm now able to backup my dB. But there this port mood must be somewhere stored and keeps.
Re: changing port on Windows installation
Posted: Monday 05 November 2018 18:06
by Mambobuzzz
Or is it cached somewhere?

Egal what I do nothing chances...
Re: changing port on Windows installation
Posted: Saturday 10 November 2018 9:09
by Mambobuzzz
No one?

Re: changing port on Windows installation
Posted: Saturday 06 June 2020 17:55
by NibblyPig
Replying to this because I searched for quite a while and couldn't find any posts that had an answer, and it comes up first in a google search for changing the domoticz port on windows.
The setting is found in several places (domoticz.conf, install.sh, nssm)
The one which fixed it was nssm.
Go to domoticz folder and open a command prompt (shift+right click inside the folder, choose open command prompt or open powershell)
Then run
or for powershell:
It will pop up a window where you edit the service parameters, and you will see the startup parameters of the service defining the port number for http and ssl. I changed it from 443 to 0 and it appears to have disabled it (one of the config files says set it to 0 to disable it).
Hit save, restart the service, and it will now stop listening on 443.
Re: changing port on Windows installation
Posted: Sunday 28 June 2020 14:41
by titvs
Im also struggling with this on a Windows installation where Domoticz starts at boot but not as a service. Cant find where are the settings for the ports since i want to disable HTTPS.
Under Task Manager's Startup, domoticz.exe has no arguments and if it is run manually, it listens on 443 port.
The only workaround so far is to disable domoticz.exe on the Task Manager, create a shortcut to domoticz.exe with the command line settings wanted and place it inside the Startup folder.
I also poke around Registry and didnt find anything relating to port 443... Where does it store this setting when Domoticz is setup to start at boot without being a service?
Thanks