Change Domoticz port 8080

On various Hardware and OS systems: pi / windows / routers / nas, etc
Post Reply
John50
Posts: 4
Joined: Tuesday 28 August 2018 23:12
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Change Domoticz port 8080

Post by John50 » Tuesday 28 August 2018 23:39

I have a raspberry pi and run Homebridge on it with plugin config-ui-x that is listen on port 8080.
Now i wanted to install the plugin eDomoticz but that is also listen on port 8080 so i get error connection refused.
I have tried to change the port value in the json file to 8084 but get the same message.
How should i change the port correctly ?

User avatar
EdwinK
Posts: 1383
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Change Domoticz port 8080

Post by EdwinK » Wednesday 29 August 2018 10:20

During the installation of Domoticz, you can set the port on which it should work.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | RFxcom | Dashticz V2

User avatar
HansieNL
Posts: 457
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Change Domoticz port 8080

Post by HansieNL » Wednesday 29 August 2018 11:33

In the terminal:
sudo service domoticz.sh stop
sudo nano /etc/init.d/domoticz.sh
sudo systemctl daemon-reload
sudo service domoticz.sh start
Blah blah blah

John50
Posts: 4
Joined: Tuesday 28 August 2018 23:12
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Change Domoticz port 8080

Post by John50 » Wednesday 05 September 2018 23:31

Hi Edwin and Hans,
the problem is that both plugin uses the same port in the config,json, but if i change the port to 8084 for edomoticz i get the connectionrefused error for port 8084
here is my config.json
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "Mijn Homebridge configuratie",
"accessories": [ {
"accessory": "Weather",
"apikey": "API key",
"location": "plaatsnaam,nl",
"name": "OpenWeatherMap Temperature"
}
],
"platforms": [{
"platform": "config",
"name": "Config",
"port": 8080,
"restart": "sudo -n systemctl restart homebridge",
"log": {
"method": "systemd",
"service": "homebridge"
},
"sudo": true
},
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "127.0.0.1",
"port": "8080",
"ssl": 0,
"roomid": 0,
"mqtt": 0
}
]
}

John50
Posts: 4
Joined: Tuesday 28 August 2018 23:12
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Change Domoticz port 8080

Post by John50 » Wednesday 05 September 2018 23:36

this is what i see in the terminal,

Homebridge is running on port 51826.
[eDomoticz] There was a problem connecting to Domoticz.
- Error: connect ECONNREFUSED 127.0.0.1:8080
[Config] Using Form Authentication
[Config] Console v3.8.9 is listening on port 8080.

John50
Posts: 4
Joined: Tuesday 28 August 2018 23:12
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Change Domoticz port 8080

Post by John50 » Friday 07 September 2018 21:36

Hi, i am a bit further.
I installed the Domoticz package and indeed during installation it is possible to choose the port.
So i did, and put in 8084 as port.
After the install i opend domoticz.sh and changed the port value there from 8080 to 8084.
But when i go to the domoticz webpage it is still only working with port 8080

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests