Block port on all interfaces using PF
The proper rule is:

block in quick inet proto { tcp, udp } from any to any port 63342


Some parts may be omitted (e.g. inet or from any) with a slightly different meaning.