add method to get user ip