I've already turned on the home sharing on my Laptop and on AppleTV, but it doesn't work. This could be related to Firewall?
Welcome to the Apple Community.
Yes, amongst other things your firewall may be a problem.
The following article(s) may help you.
Troubleshooting WiFi Networks
Retrieving data ...