Toon mobile access

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Arnout2000
Member
Member
Posts: 111
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon mobile access

Post by Arnout2000 »

Nearly 3 weeks have passed and I cannot access Toon again.
After running the update script again and rebooting Toon, everything is fine.
Any idea what causes this?
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon mobile access

Post by TheHogNL »

Arnout2000 wrote:Nearly 3 weeks have passed and I cannot access Toon again.
After running the update script again and rebooting Toon, everything is fine.
Any idea what causes this?
Someone in your household pressing that 'lokale toegang' button on the toon?
Member of the Toon Software Collective
Arnout2000
Member
Member
Posts: 111
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon mobile access

Post by Arnout2000 »

No, members of my household surprisingly show no interest in pressing 'buttons' on Toon. They only watch the weather forecast and recently the P2000 notifications :lol:
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Toon mobile access

Post by 4nuts »

I don't see the mobile app on my toon 1 , it shows 38 app's in total on the ToonStore .
When I check github TSC the Mobile app is present.
Is there a reason that it it is not showing on the ToonStore ?
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon mobile access

Post by Toonz »

Yes, because it is not an app but a website on your Toon itself.
You can access it via http://<ip adrress of your toon>/mobile
member of the Toon Software Collective
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Toon mobile access

Post by 4nuts »

Toonz wrote:Yes, because it is not an app but a website on your Toon itself.
You can access it via http://<ip adrress of your toon>/mobile
Thanks for your reply , works great now !
witteherder
Starting Member
Starting Member
Posts: 25
Joined: Thu Jan 10, 2019 2:28 pm

Re: Toon mobile access

Post by witteherder »

I still have a big problem with making contact with Toon2

I did put the right local ip address on my phone which is also connected with the same SSID Wifi

My phone is getting only this

"Even geduld"
Even geduld aub terwijl we proberen verbinding te maken met de Toon thermostaat.

I wanted to show a picture of the phone but the pixels are to low to upload.

I did check on the Toon 2 for the right ip address 192.168.2.15 local and port 80
Toon 2 Rooted User
Firmware version: 5.94.7
Raspberry Pi 3B+
Domoticz 2022.1
10 Neo Coolcam PowerPlus
Domotica Beginner (need little help in beginning)
Arnout2000
Member
Member
Posts: 111
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon mobile access

Post by Arnout2000 »

I keep having issues with getting access to Toon from my mobile.
It works ok for weeks or months and then alle of sudden I just cannot get access anymore.
I was away this weekend and tried to access Toon while using my VPN to my home. I can access all my other systems on my LAN, but not Toon.
Now, after returning home, I also cannot access Toon while being on my local network.
What command can I issue via Putty or what can I do to find the reason for Toon not being accessible?
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon mobile access

Post by oepi-loepi »

Has your local ip been changed? Did you have a rest of your router and you have not fixed the ip adress in your router?
Arnout2000
Member
Member
Posts: 111
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon mobile access

Post by Arnout2000 »

Thanks for your suggestion, but via the DHCP binding option in my router I have reserved a fixed IP address for my Toon.
Arnout2000
Member
Member
Posts: 111
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon mobile access

Post by Arnout2000 »

I can access Toon on its normal IP adress using Putty and I downloaded and ran the script again to refresh the firewall settings in Toon.
(sh /root/update-rooted.sh -f)
but unfortunately no effect. whatever I try, I just cannot access Toon via webbrowser anymmore. (In my case: http://192.168.2.24/mobile/#main)

Any other things I can try?
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon mobile access

Post by oepi-loepi »

Arnout2000 wrote:I can access Toon on its normal IP adress using Putty and I downloaded and ran the script again to refresh the firewall settings in Toon.
(sh /root/update-rooted.sh -f)
but unfortunately no effect. whatever I try, I just cannot access Toon via webbrowser anymore. (In my case: http://192.168.2.24/mobile/#main)

Any other things I can try?

do you get response to http://toon-ip-adres/happ_thermstat?act ... mostatInfo ?
lighttpd is running ? (/etc/init.d/lighttpd restart)
no changes made to /qmf/etc/lighttpd/lighttpd.conf ?
port 80 nog open in de iptables ?
Arnout2000
Member
Member
Posts: 111
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon mobile access

Post by Arnout2000 »

oepi-loepi wrote: do you get response to http://toon-ip-adres/happ_thermstat?act ... mostatInfo ?
lighttpd is running ? (/etc/init.d/lighttpd restart)
no changes made to /qmf/etc/lighttpd/lighttpd.conf ?
port 80 nog open in de iptables ?

http://toon-ip-adres/happ_thermstat?act ... mostatInfo ?
This command times out, so nothing happens.

For the other questions:
lighttpd is running ? (/etc/init.d/lighttpd restart)
no changes made to /qmf/etc/lighttpd/lighttpd.conf ?
port 80 nog open in de iptables ?

I need some guidance please as I am not a software expert.
Which commands should I issue to find out the answers to these points?
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon mobile access

Post by oepi-loepi »

Just checked..

At my toon if i do /HCBv2/etc/start.d/lighttpd restart it gives permission denied.. same at your toon?

You can try to restart your iptables : /etc/init.d/iptables restart

You can also check if port 80 is open: vi /etc/default/iptables.conf
there should be a line : -A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT



If nothing helps power down your toon and repower.
Arnout2000
Member
Member
Posts: 111
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon mobile access

Post by Arnout2000 »

oepi-loepi wrote:Just checked..

At my toon if i do /HCBv2/etc/start.d/lighttpd restart it gives permission denied.. same at your toon?
Yes, permission denied.


You can try to restart your iptables : /etc/init.d/iptables restart
Done!
Output: Flushing iptables: iptables ip6tables.
Loading iptables settings: iptables ip6tables.



Immediately after this, I can access my Toon again! Great!!



You can also check if port 80 is open: vi /etc/default/iptables.conf
Done!

Output:
##############################################################################
*nat
PREROUTING ACCEPT [0:0]
POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
##############################################################################
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:HCB-INPUT - [0:0]
-A INPUT -j HCB-INPUT
-A FORWARD -j HCB-INPUT
-A HCB-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# These are all closed for Quby/Toon:
-A HCB-INPUT -p tcp -m tcp --dport 22 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 443 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 5900 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 7080 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 10080 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
#-A HCB-INPUT -p udp -m udp --dport 137:138 -j ACCEPT
#-A HCB-INPUT -p udp -m udp --sport 67:68 --dport 67:68 -j ACCEPT
-A HCB-INPUT -i lo -j ACCEPT
-A HCB-INPUT -i tap+ -j ACCEPT
-A HCB-INPUT -i tun+ -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -j DROP
-A HCB-INPUT -p udp -m udp -j DROP
COMMIT
##############################################################################



there should be a line : -A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
Confirmed!
So it seemed that restarting the IP tables did the trick. Any idea how this happened?
I also tried rebooting Toon, but that didn't help, so I guess restarting doesn't restart the IP tables.
By the way, a lot of ports are open. Is that needed?

Anyway, happy that it works again. I will memorize these suggestions, in case it happens again in the future.
Thank you very much for the help!
Post Reply

Return to “Toon Apps”