Use p4 login -a so the ticket remains valid when your IP address changes.