ail-framework icon indicating copy to clipboard operation
ail-framework copied to clipboard

remote access

Open Baconrind opened this issue 1 year ago • 4 comments

Hi

I see if I NMAP the AIL-Framwork IP that port 7000 is not visible. Is there a setting I need to change to proxy to the app ? Im trying to login to the dashboard from my work machine, I have all NAT Portforwading and Firewalls rules set but cant go direct to the port.

Best dean

Baconrind avatar Mar 05 '24 10:03 Baconrind

Hi @Baconrind ! You need to change the binding of the Flask host: configs/core.cfg -> [Flask]

Terrtia avatar Mar 05 '24 13:03 Terrtia

Thanks for the reply Terrtia. Ive set the host to bind to the internal IP and the port is still set at 7000.

Im still not able to access the GUI remotely, firewall rules and port forwarding set so that static IP plus port gets forwarded to the internal bound host Ip 192.136.1.187 on port 7000 .

Do I need to set the section in the flask config : #proxying request to the app base URL = /

Any help greatly received Dean

Baconrind avatar Mar 06 '24 09:03 Baconrind

You can set the host to 0.0.0.0 The Flask application will listen on all available network interfaces

Terrtia avatar Mar 06 '24 14:03 Terrtia

@Terrtia I set the host to 0.0.0.0 but still cannot access the GUI. What might be the issue here?

AIL

I would really appreciate your assistance

nexhis avatar Jul 12 '24 09:07 nexhis

Im having the same issue and despite making the change to 0.0.0.0 it still does not work.

gru3zi avatar Jan 03 '25 20:01 gru3zi

Guys, it is working...

Edit following file /ail-framework/configs/core.cfg Locate following section:

##### Flask #####
[Flask]
#Proxying requests to the app
baseUrl = /
#Host to bind to
host = localhost -> change this to 0.0.0.0
#Flask server port
port = 7000
#Number of logs to display in the dashboard
max_dashboard_logs = 15

Then just restart AIL using ./LAUNCH.sh -r (in /ail-framework/bin/)

Lukynprogram avatar Jan 07 '25 13:01 Lukynprogram

I added a new test to verify AIL's ability to connect to the Flask server. This test logs whether the Flask server is running in log/test.log

Terrtia avatar Jan 16 '25 14:01 Terrtia