get ip method @java