adding code to fetch remote IP