Set AFnetworking and localhost