set model ip
Better handling of user's ip address