Replies: 1 comment 1 reply
-
Yeah, there is a web server (Fletd) running and by default listening on all computer IP addresses. There are two kinds of clients that can connect to that web server: 1) host client - Python program and 2) web client - user's web browser or anything else on the internet. See this diagram for a visualization: https://flet.dev/docs/guides/python/mobile-support#flet-approach Both host and web clients are connecting via WebSocket protocol. By default, Fletd does not allow "remote" host clients, i.e. Python program controlling the UI must be coming from If you are not planning to expose Flet app as a web app you can make Fletd listen on flet.app(target=main, host="127.0.0.1") Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
This is a very interesting project!
I'm trying to understand the network interactions involved (and possible security considerations) when running desktop applications. For now, I am personally just interested in "desktop" applications (immediately, on Linux but if there are substantial differences to Windows or iOS that'd be good to know too :).
e.g. when I run examples from Python I see a
fletd
running locally and I can interact with it via some simple telnet Web requests. Is there a threat-model or document describing how this works? Could another program running locally as me interfere with a desktop flet UI? (Could a malicious Web page make localhost requests and similarly interfere, after getting the correct port?)Thanks for any pointers!
Beta Was this translation helpful? Give feedback.
All reactions