Localhost on WSL2

I run Ubuntu 20.04 on Windows WSL2. The issue is that the Linux subsystem does not open the Streamlit page on the localhost address (it uses for example ‘Network URL: http://172.20.x.x:8501’). Everything works well but the Hamburger Menu does not show the developer options if the address is not localhost. Is there a way to make the developer options available to non local host addresses? Thank you!