changed the way ipaddress is calculated
changes to the client package