Is there a way to allow Team Viewer access only to the specific IP I have specified?

I want to know how to use Windows 10 self-firewall or inbound or outbound rules to block all team viewer remote access except for certain ip.