As far as I am aware, port scanning is legal, so you can test it wherever you like. However, port scanning in high numbers may turn the head of your ISP, and it's possible they could refuse you service because of that. The reason for this, is because depending on the severity of the scan, some sites may ban the IP you scanned from, and your ISP does not the IP's they give out to customers to be banned from certain services.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.