Added an IP retrieval in the index controller