Hi @rr-4098
All the steps to perform this configuration are described in the official Microsoft document below:
There is the method Using Use the MMC snap-in management console and another one via Powershell
Don't forget that despite the methods mentioned above, you can also limit using your firewall/router
Get in touch if you need more help with this issue.
--please don't forget to "[Accept the answer]" if the reply is helpful--