Board index FlightGear Support Interfacing

How to access Phi from my smartphone

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

How to access Phi from my smartphone

Postby Frimski » Thu Jun 04, 2020 6:17 pm

Hi,
I'm new here, so please apologize if I ask stupid questions.
I'm looking for a tutorial how to access the Phi interface through my home network. I scanned through the topics but couldn't find anything.

Thanks for your help,
Christoph
Frimski
 
Posts: 1
Joined: Tue Apr 21, 2020 6:24 pm

Re: How to access Phi from my smartphone

Postby ludomotico » Thu Jun 04, 2020 6:48 pm

1- Discover the IP address of your computer.

- On windows: in the task bar, left click on connections -> properties of the connected network -> IPv4 address. It must be an address similar to this one: 192.168.1.100 (most probably, the last number is different)
- On Linux: use a similar approach checking NetworkManager properties in the task bar, or run ip a

Most probably, this address won't change for weeks, but checking it from time to time is a good idea. You can assign a static address to your computer in your router settings, if you want to.

2- Run FlightGear with the additional setting --httpd=8080 You can set additional settings at the end of the "settings" tab of the FlightGear launcher

3- Check you can connect using a browser from your computer: http://192.168.1.100:8080. Use the address the address you discovered during the first step and the port of the second step!

You should see the generic Phi interface.

Image

In case the aircraft provides custom webpanels (the C172P does), visit http://192.168.1.100:8080/aircraft-dir, http://192.168.1.100:8080/aircraft-dir/ ... panel.html or something similar.

Image

4- If you can connect correctly from your computer, visit the same address from your smartphone. The computer and the smartphone must be connected to the same network!
User avatar
ludomotico
 
Posts: 1102
Joined: Tue Apr 24, 2012 1:01 pm
Version: git
OS: Debian GNU/Linux

Re: How to access Phi from my smartphone

Postby tdammers » Fri Jun 12, 2020 2:50 pm

Also note that the computer may have a firewall running that limits network access to local connections (i.e., from the same machine) only.
tdammers
 
Posts: 319
Joined: Wed Dec 13, 2017 10:35 am
Callsign: NL256
IRC name: nl256


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest