isLocalAddress
returns true in my test for "0177.1". So if the problem still occurs, please share in which environment you're testing this.
I tried with various Java 8 and Java 21 Docker images on Windows 11.
Btw, the Java snippet in this post covers a few more SSRF protections.