Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No access to http://0.0.0.0:8000

Tags:

python

fenics

I am following the directions from https://fenics.readthedocs.io/projects/containers/en/latest/introduction.html .

I get:

fenics@af86d2c8af46:~$ cd ~/demo/python/documented/poisson
fenics@af86d2c8af46:~/demo/python/documented/poisson$     python3 demo_poisson.py
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Solving linear variational problem.
To view figure, visit http://0.0.0.0:8000
Press Ctrl+C to stop WebAgg server

But I am not able to open http://0.0.0.0:8000 (I have tried chrome, safari and firefox). I have also tried replacing 0.0.0.0. with my IP adress or localhost, but the problem remains.

Edit: I'm not sure if this plays a role, but if I try http://0.0.0.0:8000 or localhost:8000, I get an error right away, but when I replace 0.0.0.0 with my IP adress, I get that "the brosing took too long".


1 Answers

0.0.0.0 is not a real IP address. In this context, it designates that the service is reachable through any IPv4 address that this machine has. You can connect to the service via http://127.0.0.1:8000.

You'll also need to forward the docker port to the host machine:

docker run -p 8000:8000 -ti quay.io/fenicsproject/stable:latest
like image 51
bereal Avatar answered Oct 31 '25 05:10

bereal