Closed proneon267 closed 1 year ago
If anybody is still having this issue, the solution was very simple.
In your javascript: eel.set_host(window.location.origin);
I meant to get the port number in the python side. I ended up writing a custom function in python that returned an unused port and assigned eel to run on it.
I meant to get the port number in the python side. I ended up writing a custom function that returned an unused port and assigned eel to run on it.
How did you get the port in Javascript if I may ask?
You can simply pass the generated port number from python side to the js side through eel object.
Describe the problem When
port=0
is used, it chooses a random port number. So, how do I get the actual port number on which eel is listening?