That can happen if you connect to the login server from one IP and then try to connect to the game server from another IP. Game server doesn't accept connections from different IPs than to login server one. You can contact your provider regarding it or that can be fixed with vpn.