-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Connection lost immediately on Mac #1154
Comments
Hello @AndrewMHenry. That should not happen. We develop on Mac without problems. Please make sure you have the right version: from nicegui import ui, __version__
ui.label(f"{__version__=}")
ui.run() And maybe try reinstalling the package. You could also try another port with |
Hi @rodja , thanks for the advice! I confirmed that So far, I've only had the problem on ports
and I could access the server from my browser without problems (same with port It's also interesting that serving up a NiceGUI app on Update: It turns out that there were other IT-type processes running on those ports; is it plausible that those processes are causing NiceGUI to disconnect without preventing it from connecting in the first place? |
No, not to my knowledge. If the port is already used, the NiceGUI server startup should fail and report the blocked port. What was the other "IT-type process"? How to reproduce? |
Ok, thanks for following up. The software wasn't familiar to me, and I'm not sure whether it's just company-internal stuff, but I'm currently trying to track it down; if I find anything useful to share about it, I will let you know. That said, without knowing what the specific software is, when I ran Is it possible that the other ports are not interfering with the server startup because they are not in the |
Update: Closing this issue. It looks like this problem was based on a new IT policy that affected programs using ports 80 and 8080. They have a new solution that's fixing the problem for me so far, which confirms this is not an issue with NiceGUI but with our particular setup. Thanks for all your help! |
Description
1. What are you trying to do?
On my Mac with the latest version of NiceGUI, I'm having trouble running the following "Hello, World"-type program:
I am running it in a test virtual environment with just
nicegui
installed into it:2. What do you expect to happen?
The webpage should come up without any error messages.
3. What happens instead?
The webpage comes up, but immediately shows the box with Connection lost.
Other notes
The program works when I replace
ui.run()
withui.run(native=True)
, and I can also run a NiceGUI program on a remote Ubuntu Linux VM and access the webpage successfully from my local machine using port forwarding.Is anyone else having the same problem? I still have the problem with old versions of NiceGUI, so it doesn't seem like it's due to a recent NiceGUI change.
The text was updated successfully, but these errors were encountered: