gismo141 / homebridge-server

Server plugin for homebridge
https://gismo141.github.io/configure-your-homebridge-2/
152 stars 20 forks source link

Can make it to work - please assist #53

Closed Agneen closed 5 years ago

Agneen commented 6 years ago

Hi! I installed server plugin, added necessary lines to config.json, got confirmation that server is listening on port 8765 but I can access it on pi or other computer in my network (IP address and localhost:8765 are not working).

[2017-12-28 21:40:00] Loaded plugin: homebridge-server
[2017-12-28 21:40:00] Registering platform 'homebridge-server.Server'
[2017-12-28 21:40:00] ---
[2017-12-28 21:40:00] Loaded plugin: homebridge-tplink-smarthome
[2017-12-28 21:40:00] Registering platform 'homebridge-tplink-smarthome.TplinkSmarthome'
[2017-12-28 21:40:00] ---
[2017-12-28 21:40:00] Loaded config.json with 0 accessories and 2 platforms.
[2017-12-28 21:40:00] ---
[2017-12-28 21:40:00] Loading 2 platforms...
[2017-12-28 21:40:00] [Homebridge Server] Initializing Server platform...
[2017-12-28 21:40:00] [Homebridge Server] is listening on: http://192.168.0.50:8765
"platforms": [
    {
    "platform": "TplinkSmarthome",
    "name": "TplinkSmarthome"
    },
    {
    "platform": "Server",
    "port": 8765,
    "name": "Homebridge Server",
    "log": "systemd",
    "restart": "sudo reboot"
    }
]
pi@raspberrypi:~ $ sudo netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp6       0      0 :::40121                :::*                    LISTEN      442/homebridge      
tcp6       0      0 :::37121                :::*                    LISTEN      442/homebridge      
tcp6       0      0 :::41826                :::*                    LISTEN      442/homebridge      
tcp6       0      0 :::80                   :::*                    LISTEN      831/apache2     

Am I missing any dependency? My Homebridge works no problem with tp-link hardware.

Please assist! Thank you!

gismo141 commented 6 years ago

Mhm this one isn’t easy to debug. Do you have any firewall in place on your raspberry that might block the port?

Could you please scan all ports of your pi from another device?

When accessing the website, does the log prints something out or is the plugin crashing and restarting?

Thanks for your effort!

gismo141 commented 5 years ago

Closing due to inactivity.