question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using "0.0.0.0" as host

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
wd77commented, Jan 17, 2020

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.

0reactions
samuelhwilliamscommented, Jul 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found