Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing app host/IP binding #98

Closed
iforvard opened this issue Jul 24, 2022 · 3 comments · Fixed by #144
Closed

Changing app host/IP binding #98

iforvard opened this issue Jul 24, 2022 · 3 comments · Fixed by #144
Milestone

Comments

@iforvard
Copy link

How to change host address other than 127.0.0.1?

example
flet.app(target=main, host="192.168.1.1")

@FeodorFitsner
Copy link
Contributor

Flet server is listening on all NIC IP addresses by default. You can just change opened URL into 192.168.0.1 and it should work.

@FeodorFitsner
Copy link
Contributor

But I agree adding host parameter would be natural. Let's keep this item opened, so I can fix it.

@FeodorFitsner FeodorFitsner added this to the S1 milestone Aug 1, 2022
@FeodorFitsner FeodorFitsner changed the title How to change the host address? Changing app host/IP binding Aug 1, 2022
FeodorFitsner added a commit that referenced this issue Aug 3, 2022
@Hrishikesh46779
Copy link

I changed 127.0.0.1 to 192.168.1.109.
But it shows Exception: Could not connected to Flet server in 30 seconds.
I want to run it on other Ip address than 127.0.0.1 so I can access the page with other devices.
I have done this
ft.app(target=main, host="192.168.1.109", view=ft.WEB_BROWSER)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants