Radarspotting

Mode-S Software => Virtual Radar Server => Topic started by: dodsy1 on April 18, 2021, 05:46:23 PM

Title: DDNS mobile issues
Post by: dodsy1 on April 18, 2021, 05:46:23 PM
Hi. I'm having issues getting a DDNS type IP address of VRS to work correctly on mobile every time I try to connect the screen is virtually un-viewable due to the zoom level.

I am redirecting it to the mobile address of VRS which loads fine on a phone when connecting directly to the 82. address as soon as I run the same address through a ddns host it goes funny as shown below

Running the mobile ip through a ddns brings this

(https://i.ibb.co/sQ9fnhr/Untitled.png)

Running the mobile ip directly through the 82. address shows this

(https://i.ibb.co/JkcMQMp/Untitled1.png)

Any help would be greatly appreciated

Title: Re: DDNS mobile issues
Post by: Oblivian on April 19, 2021, 08:47:45 AM
Settings, check for 'desktop site' square being selected
Title: Re: DDNS mobile issues
Post by: dodsy1 on April 19, 2021, 12:18:31 PM
Desktop setting on my phone browser is not enabled
Title: Re: DDNS mobile issues
Post by: dodsy1 on April 19, 2021, 12:33:34 PM
I am forwarding to http://MY IP AND PORT/VirtualRadar/mobile.html and another to http://MY IP AND PORT/VirtualRadar

On a computer they load fine the issue is only happening on phones
Title: Re: DDNS mobile issues
Post by: Oblivian on April 20, 2021, 09:35:45 AM
You should be able to force either by specifying desktop.html vs mobile.html at the end of the URL if detecting wrong (your DDNS address bookmark isn't forcing the other?)

Javascript runs on load in index.html. If piping through from an external host/ddns it may not detect right, or reset the cookie.
Desktop.html is served by default to large screens if detected. Mobile.html when smaller.

Mobile has an auto-scale setting that will appear different depending on screen size and detection as part of that request.
https://www.w3schools.com/css/css_rwd_viewport.asp
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui

Deleting all trace of cookies for the site/url may help there if over-riding the page loaded does not.
Title: Re: DDNS mobile issues
Post by: dodsy1 on April 20, 2021, 12:24:09 PM
Quote from: Oblivian on April 20, 2021, 09:35:45 AM
You should be able to force either by specifying desktop.html vs mobile.html at the end of the URL if detecting wrong (your DDNS address bookmark isn't forcing the other?)

Javascript runs on load in index.html. If piping through from an external host/ddns it may not detect right, or reset the cookie.
Desktop.html is served by default to large screens if detected. Mobile.html when smaller.

Mobile has an auto-scale setting that will appear different depending on screen size and detection as part of that request.
https://www.w3schools.com/css/css_rwd_viewport.asp
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui

Deleting all trace of cookies for the site/url may help there if over-riding the page loaded does not.

Trying to use no-ip for setting it up the IP has /VirtualRadar/mobile.html as the end of it on the redirect
Title: Re: DDNS mobile issues
Post by: Oblivian on April 21, 2021, 06:58:53 AM
I'm not quite following fully.

But you should be sending any link, local or a ddns redirect it to the root /VirtualRadar so that index.html can execute to ensure it is detecting the right size and scaling ability and passing it through to the next page it loads.
Title: Re: DDNS mobile issues
Post by: dodsy1 on April 21, 2021, 09:31:37 AM
Quote from: Oblivian on April 21, 2021, 06:58:53 AM
I'm not quite following fully.

But you should be sending any link, local or a ddns redirect it to the root /VirtualRadar so that index.html can execute to ensure it is detecting the right size and scaling ability and passing it through to the next page it loads.

Maybe I'm doing something wrong I don't know

In the no-ip panel I set up a web redirect to my external VRS mobile ip with /VirtualRadar/mobile.html at the end should I be doing something else instead?
Title: Re: DDNS mobile issues
Post by: Oblivian on April 22, 2021, 07:15:44 AM
Got a screenshot?

Normally a DDNS is a tool used to make sure an internet device can get to a home PC even if it changes address

Mobile/pc on internet -> DNS lookup -> DDNS answers -> redirect to the current home PC Public address -> Home router (pinhole) -> direct to server/port of Pc/pi.

A web redirect is normally if you want to make one adress just send that traffic to another website elsewhere instead

Risky, But if virtual radar is the only host, and on say port 8080

Then the internal (destination) host/destination address should  be address.of.device.hosting:8080.  And any connections to your.ddns.address/VirtualRadar  would perform the same.

And that's it. By default, /VirtualRadar/index.html will then load
It will detect the screen size. And load /VirtualRadar/mobile.html with some settings pre determined
Title: Re: DDNS mobile issues
Post by: dodsy1 on April 22, 2021, 09:25:43 AM
Quote from: Oblivian on April 22, 2021, 07:15:44 AM
Got a screenshot?

Normally a DDNS is a tool used to make sure an internet device can get to a home PC even if it changes address

Mobile/pc on internet -> DNS lookup -> DDNS answers -> redirect to the current home PC Public address -> Home router (pinhole) -> direct to server/port of Pc/pi.

A web redirect is normally if you want to make one adress just send that traffic to another website elsewhere instead

Risky, But if virtual radar is the only host, and on say port 8080

Then the internal (destination) host/destination address should  be address.of.device.hosting:8080.  And any connections to your.ddns.address/VirtualRadar  would perform the same.

And that's it. By default, /VirtualRadar/index.html will then load
It will detect the screen size. And load /VirtualRadar/mobile.html with some settings pre determined

This is what I have

(https://i.ibb.co/2qH22gC/Screenshot-2021-04-22-My-No-IP-Hostnames.png)
Title: Re: DDNS mobile issues
Post by: Oblivian on April 25, 2021, 12:27:36 AM
Take off mobile.html totally

It will use the pre determined and changed settings contained in that. Rather than re-adjusting/formatting.

If that doesn't work,. it's the size detection failing as part of the redirect.
Title: Re: DDNS mobile issues
Post by: dodsy1 on April 25, 2021, 12:30:25 AM
Quote from: Oblivian on April 25, 2021, 12:27:36 AM
Take off mobile.html totally

It will use the pre determined and changed settings contained in that. Rather than re-adjusting/formatting.

If that doesn't work,. it's the size detection failing as part of the redirect.

I have tried it without mobile.html without success previously
Title: Re: DDNS mobile issues
Post by: ishaimiev on May 25, 2021, 01:31:45 PM
How