Creating function for getting remote URL.