I assume this is on Windows. Unfortunately the IP address of WSL2 can change any time it restarts. But ingress ports should be forwarded to the host, so can't you access them via
localhost
? I guess I need more information about what you are trying to do.