Change IP info to dictionary