simple code to fetch IP vals