Using "0.0.0.0" as host
See original GitHub issueDescribe the problem I’m trying to use 0.0.0.0 as host because I want to be able to connect to the GUI from other computers on the same network. This works, but it is making the window that eel opens open to 0.0.0.0:3000/main.html , which doesn’t load. Is there a way to override the address that eel opens when it opens its chromium window? Code snippet(s)
import eel
eel.start("main.html", host="0.0.0.0")
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
What is the difference between 0.0.0.0, 127.0.0.1 and localhost?
0.0 that means "listen on every available network interface". The loopback adapter with IP address 127.0.0.1 from the perspective of the server ...
Read more >What's the difference between 127.0.0.1 and 0.0.0.0?
In most server configurations 0.0.0.0 means, listen on ALL addresses! This will make your server available on the internet. If you do that...
Read more >What is the Difference Between 127.0.0.1 and 0.0.0.0?
In the context of servers, 0.0.0.0 means all IPv4 addresses on the local machine. If a host has two IP addresses, 192.168.1.1 and...
Read more >Difference between 127.0.0.1 and 0.0.0.0 - GeeksforGeeks
127.0.0.1 IP Address, 0.0.0.0 IP Address ; It is a loopback address(localhost address). It is a non-routable address. ; This address is used...
Read more >What's the difference in localhost vs 0.0.0.0? [duplicate]
The difference is that localhost, being a network interface, is very specific. When you say that you want to connect to 127.0.0.1, you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From the way I read browsers.py you could try not to give host=“0.0.0.0” but the real local ip address you would want to bind to. E.g:
host="172.16.1.1"
could work, as browsers.py builds the string to open from this host variable.I have tried that, and it works as a work-around if you only want to bind to one specific address.
Given that Eel is intended mostly for single-user applications (ie. isn’t intended to be used across the network in the supported case), and it can be addressed by the developer with the custom code @ChrisKnott suggested, I’m going to close this as “out of scope” for now. Thanks for sharing your use case though.