If you trying to screen mirror to your smart tv from your MacBook go to System Preferences > Security & Privacy > Firewall Options. Uncheck "Block all Incoming Connections".
Topic:
App & System Services
SubTopic:
General
Tags: