changing port on Windows installation

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Mambobuzzz
Posts: 8
Joined: Saturday 20 October 2018 18:09
Target OS: Windows
Domoticz version:
Contact:

changing port on Windows installation

Post 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
Mambobuzzz
Posts: 8
Joined: Saturday 20 October 2018 18:09
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post by Mambobuzzz »

Hi there! No one? Where is the configuration of the HTTPS under Winodws? Changing the .exe shortcut doesn't help. :/
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: changing port on Windows installation

Post 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)
Mambobuzzz
Posts: 8
Joined: Saturday 20 October 2018 18:09
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post 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 !
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: changing port on Windows installation

Post by zak45 »

Just tested on my installation on it's work:
Capture.JPG
Capture.JPG (92.69 KiB) Viewed 2342 times
Mambobuzzz
Posts: 8
Joined: Saturday 20 October 2018 18:09
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post 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! :|
Mambobuzzz
Posts: 8
Joined: Saturday 20 October 2018 18:09
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post 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.
Mambobuzzz
Posts: 8
Joined: Saturday 20 October 2018 18:09
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post by Mambobuzzz »

Or is it cached somewhere? :?: Egal what I do nothing chances...
Mambobuzzz
Posts: 8
Joined: Saturday 20 October 2018 18:09
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post by Mambobuzzz »

No one? :(
NibblyPig
Posts: 13
Joined: Monday 03 August 2015 12:29
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post 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

Code: Select all

nssm.exe edit Domoticz
or for powershell:

Code: Select all

.\nssm edit Domoticz
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.
titvs
Posts: 6
Joined: Sunday 20 October 2019 17:35
Target OS: Windows
Domoticz version:
Contact:

Re: changing port on Windows installation

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest