Had same issue after reading a lot i found out that once u sign in and authorize ur device from itunes then it will ask u to turn off ur firewall, whenever u turn that firewall off then go to the itunes upper right corner and use that airpmay icon to select ur samsung tv, then it will ask u for a password which u will enter on ur samsung tv:
settings> General> apple airplay settings> then turn airplay on> require code (use password instead) and exit out,
of u could t still connect it u have to go to ur laptos upper right corner contol icon, seect display preferences > on the bottom it says airplay display and choose the samsung tv from it drop down menu.
this worked for me and i hope it helps everyone else as well.