ip lookups working in java