add get ip method in socket java class