Problems with accesing localhost with Zalenium

Last week I configured Zalenium tool on Docker and everything worked fine, but I couldn’t access any localhost address. I’ve found a solution, using --net=host option fixed my problem, but today I tried to do the same thing and when I used that option I couldn’t acces any Zalenium address. Even in Docker, the “Open in browser” icon is inactive. I’ve been trying to fix it for few hours without any effect, I ran Docker on two different PCs and problem exists on both of them. Any help will be appreciated.

The command I use to ran Zalenium on Docker is:
docker run --rm -ti --net=host --name zalenium -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock
-v /c/Users/your_user_name/temp/videos:/home/seluser/videos --privileged dosel/zalenium start

Removing -p 4444:4444 doesn’t help eihter.