I've already solved it. It's because of the Wi-Fi network I'm connected to. I switched networks, and it still lets me connect. I don't know if it's because of a radio protocol or the address it's giving me is invalid. I'm not sure what the problem is. But it can be solved by switching Wi-Fi networks. Thanks.