permissions: raise the proper error when the IP is not provided