Fix Invalid IP address problem in Windows 11/10