for html questions use the specific forum (template)
why does a higher port avoid port scans and what are the dangers of port scans?
higher port are only useful agains some scans.
the only way to stay safe is to secure your sharings in some way.
there are many ways: you can prevent browsing, you can hide folders, you can limit access to specific accounts.