Board index FlightGear Support Interfacing

[RESOLVED] No access to Phi on wifi connected tablets  Topic is solved

Connecting two computers, using generic protocol, connecting with Matlab?

[RESOLVED] No access to Phi on wifi connected tablets

Postby rooman » Sat Jul 02, 2022 9:37 am

Not a new problem but I cannot find an answer.
Android devices are connected to the same wifi network as the main box; the Android application FlightgearMap works with parameter
Code: Select all
--generic=socket,out,20,172.22.22.148,5501,udp,andatlas
in FG.

A localhost browser finds Phi with the url
172.22.22.53:8080
so I know the ip is correct, but wifi networked devices do not.
I'm doing something simple but wrong.
Ideas please?
Last edited by rooman on Sat Jul 02, 2022 2:26 pm, edited 1 time in total.
Grew up with Dr Who then discovered Monty Python and Middle Earth. The world was never the same.
rooman
 
Posts: 197
Joined: Sun Apr 12, 2015 7:26 pm
Location: Lausanne, Switzerland
Callsign: HB-ROO
Version: Next + LTS
OS: Ubuntu latest stable

Re: No access to Phi on wifi connected tablets

Postby wkitty42 » Sat Jul 02, 2022 10:13 am

there is a difference between a web server and other protocol servers... your generic line is starting a ""telnet"" server whereas your config's http=8080 line is starting a web server... they are not the same and a web browser cannot talk to a telnet server very easily...

what, exactly, are you trying to do??
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: No access to Phi on wifi connected tablets

Postby rooman » Sat Jul 02, 2022 10:41 am

The line --generic=socket,out,20,172.22.22.148,5501,udp,andatlas is just to show the connexion FG-FlightgearMap, so know I am connecting FG to my tablets/phones with that Android app.
I think I just confused issues by mentioning it.

My problem is with Phi on wifi connected tablets
Grew up with Dr Who then discovered Monty Python and Middle Earth. The world was never the same.
rooman
 
Posts: 197
Joined: Sun Apr 12, 2015 7:26 pm
Location: Lausanne, Switzerland
Callsign: HB-ROO
Version: Next + LTS
OS: Ubuntu latest stable

Re: No access to Phi on wifi connected tablets

Postby wkitty42 » Sat Jul 02, 2022 11:55 am

ok... so let's start with the IP... 172.22.22.148 is an RFC1918 IPv4 private IP... it is only accessible from within your private IPv4 network... systems on public IPs cannot get to it without NAT and port forwarding being done on your perimeter network router/firewall device...

so the question is what IPs do your wifi tablets have? if they are also in your (assuming) 172.22.22.0/24 IP subnet, they should be able to get to that machine without problems as long as the 172.22.22.148 machine's firewall allows access... 172.22.22.0/24 is CIDR format and represents the range of 172.22.22.0 through 172.22.22.255 with the 0 and 255 addresses reserved for the network... that means the .1 through .254 addresses are free for you to use on devices in your network...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: No access to Phi on wifi connected tablets

Postby rooman » Sat Jul 02, 2022 1:07 pm

My quoting the telnet access (application FlightgearMap) was to prove that the tablet is connected to FG on the same wifi.

The problem is the tablets/phone's wifi access to the Phi web server.

In FG I've put the line --httpd=8080 as a boot parameter and a local browser (same machine) picks up the Phi web service with the url 172.22.22.53:8080, that's fine, it looks good.

But I'm trying to access this web service from devices connected by wifi. According to the simple instructions I found, it is required only to be connected to the same wifi network and use the same url.
Grew up with Dr Who then discovered Monty Python and Middle Earth. The world was never the same.
rooman
 
Posts: 197
Joined: Sun Apr 12, 2015 7:26 pm
Location: Lausanne, Switzerland
Callsign: HB-ROO
Version: Next + LTS
OS: Ubuntu latest stable

Re: No access to Phi on wifi connected tablets

Postby rooman » Sat Jul 02, 2022 2:25 pm

Resolved partially, I deactivated the firewall.
Now I must create a rule to let the tablet/phone browser access the webservice through the firewall.
Thank you.
Grew up with Dr Who then discovered Monty Python and Middle Earth. The world was never the same.
rooman
 
Posts: 197
Joined: Sun Apr 12, 2015 7:26 pm
Location: Lausanne, Switzerland
Callsign: HB-ROO
Version: Next + LTS
OS: Ubuntu latest stable

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby TheEagle » Sat Jul 02, 2022 2:47 pm

Instead of adding [RESOLVED] to the topic title, please rather mark the topic as solved using the green checkmark button at the top right of any reply ! ;)
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3433
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: No access to Phi on wifi connected tablets  

Postby wkitty42 » Sat Jul 02, 2022 5:09 pm

rooman wrote in Sat Jul 02, 2022 2:25 pm:Resolved partially, I deactivated the firewall.
Now I must create a rule to let the tablet/phone browser access the webservice through the firewall.
Thank you.

i'm glad i was able to lead you in the proper direction to solve your problem :)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby Volador » Fri Mar 10, 2023 9:29 am

On the subject of the android application, as it's not on G'l Play any more is there somewhere we can download it? I'm aware of the GitHub https://github.com/Juanvvc/FlightGearMap page but as far as I can make out that's the code to run on the PC? Should there be an application to install on the phone/tablet in there somewhere?
User avatar
Volador
 
Posts: 1142
Joined: Tue Sep 01, 2020 4:58 pm
Callsign: Volador, G-VLDR
Version: 2020.4
OS: Windows 10, 64 bit

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby MariuszXC » Fri Mar 10, 2023 11:10 am

Have you tried the usual places, like APKMirror, APKPure, etc?
Looking at GitHub, the last commit was 10 years ago, so it may simply be the case, that the app is using outdated APIs, no longer supported.
INOP
MariuszXC
 
Posts: 1062
Joined: Tue May 18, 2021 5:38 pm
Location: Europe
Callsign: SP-MRM
Version: 2020.4
OS: Ubuntu 16.04

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby SurferTim » Fri Mar 10, 2023 11:13 am

It's a web browse/network thing. It works on my iPhone web browser with a caveat.
I had to disable the cellular data setting and connect via wifi to my localnet, forcing the connection through the wifi.
Some wifi routers isolate the wireless from the ethernet. That can cause a problem. My router does not. Both are the same localnet.
This worked in my iPhone web browser. My FG computer IP is 192.168.1.20.
http://192.168.1.20:8080/aircraft-dir/W ... panel.html

I do not recommend disabling your firewall. Allow only tcp port 8080 through.
With Ubuntu, you can use ufw (command line) or gufw (gui). ufw is included with Ubuntu, but gufw needs to be installed last I checked.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1718
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby Volador » Fri Mar 10, 2023 2:23 pm

Hi Tim, Mariusz,
Will try investigate after work but Tim, are you saying this is now a web page? Like the phi map rather than an android app?
User avatar
Volador
 
Posts: 1142
Joined: Tue Sep 01, 2020 4:58 pm
Callsign: Volador, G-VLDR
Version: 2020.4
OS: Windows 10, 64 bit

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby SurferTim » Fri Mar 10, 2023 3:03 pm

Are you talking about the WebPanel access? If so, then yes. It's a webpage I can access with Safari (my iPhone browser).
Not all aircraft have a WebPanel. The C172 and the Twin Otter in my signature below have one. Mine should be portable to the FGAddon dhc6.

If you use just this
Code: Select all
http://192.168.1.20:8080

You'll get the Phi FlightGear setup page. That's my FG computer IP.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1718
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby rooman » Fri Mar 10, 2023 3:47 pm

@volador
If I can find the android apk somewhere in my archives would you like a copy?

Ok, I've found the copy "FlightGearMap_2.2_apkcombo.com.apk", how would you like it served up?
Last edited by rooman on Fri Mar 10, 2023 5:31 pm, edited 1 time in total.
Grew up with Dr Who then discovered Monty Python and Middle Earth. The world was never the same.
rooman
 
Posts: 197
Joined: Sun Apr 12, 2015 7:26 pm
Location: Lausanne, Switzerland
Callsign: HB-ROO
Version: Next + LTS
OS: Ubuntu latest stable

Re: [RESOLVED] No access to Phi on wifi connected tablets

Postby wkitty42 » Fri Mar 10, 2023 5:30 pm

SurferTim wrote in Fri Mar 10, 2023 3:03 pm:Are you talking about the WebPanel access? If so, then yes. It's a webpage I can access with Safari (my iPhone browser).
Not all aircraft have a WebPanel. The C172 and the Twin Otter in my signature below have one. Mine should be portable to the FGAddon dhc6.

If you use just this
Code: Select all
http://192.168.1.20:8080

You'll get the Phi FlightGear setup page. That's my FG computer IP.

FWIW: that IP is valid for your FG computer only in your local network... on my network, that IP belongs to something else and post 8080 is not enabled on it...

that address is part of the IPv4 RFC1918 reserved addresses... they are not routeable outside of the LAN where they are defined and used...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Next

Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest