Ports to open for app to work

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
MoOz
Posts: 31
Joined: Tue Jan 17, 2017 9:49 pm

Ports to open for app to work

Post by MoOz »

Hi I am using
ZM 1.30 and Ubuntu 16.04
and the ZmNinja app

the app works on the local LAN
but not from the WAN side

port 80 on my firewall is open to my zoneminder
do i have to open more ports ?
maybe i missed the document somewhere
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Ports to open for app to work

Post by asker »

The app doesn't need any additional ports.

If the app is working from LAN but not WAN, and you are using HTTPS, it is very likely an issue with your SSL certificate
https://github.com/pliablepixels/zmNinj ... use-wan-ip
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
MoOz
Posts: 31
Joined: Tue Jan 17, 2017 9:49 pm

Re: Ports to open for app to work

Post by MoOz »

Hi
thanks for your information and help

i am using HTTP

so i will turn on https
MoOz
Posts: 31
Joined: Tue Jan 17, 2017 9:49 pm

Re: Ports to open for app to work

Post by MoOz »

ok
i used this link to enable HTTPS
https://help.ubuntu.com/12.04/servergui ... figuration

sudo a2enmod ssl
sudo a2ensite default-ssl
sudo service apache2 restart

Https works from browser and app
MoOz
Posts: 31
Joined: Tue Jan 17, 2017 9:49 pm

Re: Ports to open for app to work

Post by MoOz »

for CERT used the link
https://github.com/pliablepixels/zmNinj ... use-wan-ip
created dir
sudo mkdir /etc/apache2/ssl
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/zoneminder.key -out /etc/apache2/ssl/zoneminder.crt
edited the apache ssl config
restart
cannot connect with the app using Wan

work on the Lan
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Ports to open for app to work

Post by asker »

1) Can you access ZM from WAN using a mobile browser?
2) If you can, please post zmNinja logs (debug logs - enable debug in dev options)
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
alfvicente
Posts: 7
Joined: Sat Mar 25, 2017 6:32 am

Re: Ports to open for app to work

Post by alfvicente »

If you're using SSL try opening port 443 as well
Post Reply