Ports to open for app to work

Discussion topics related to mobile applications for ZoneMinder
Post Reply
MoOz
Posts: 15
Joined: Tue Jan 17, 2017 9:49 pm

Ports to open for app to work

Post by MoOz » Mon Mar 13, 2017 3:18 am

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

asker
Posts: 795
Joined: Sun Mar 01, 2015 12:12 pm

Re: Ports to open for app to work

Post by asker » Mon Mar 13, 2017 1:28 pm

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
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

MoOz
Posts: 15
Joined: Tue Jan 17, 2017 9:49 pm

Re: Ports to open for app to work

Post by MoOz » Tue Mar 14, 2017 5:53 am

Hi
thanks for your information and help

i am using HTTP

so i will turn on https

MoOz
Posts: 15
Joined: Tue Jan 17, 2017 9:49 pm

Re: Ports to open for app to work

Post by MoOz » Tue Mar 14, 2017 7:46 am

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: 15
Joined: Tue Jan 17, 2017 9:49 pm

Re: Ports to open for app to work

Post by MoOz » Tue Mar 14, 2017 7:55 am

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

asker
Posts: 795
Joined: Sun Mar 01, 2015 12:12 pm

Re: Ports to open for app to work

Post by asker » Tue Mar 14, 2017 2:35 pm

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)
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

alfvicente
Posts: 5
Joined: Sat Mar 25, 2017 6:32 am

Re: Ports to open for app to work

Post by alfvicente » Sat Mar 25, 2017 6:36 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest