So I understand why preferring ipv4 would fix an issue while using DNS, but why would Java fail to connect when directly using the ip address?