Hello,
Thank you for posting in Q&A forum.
The following operations can be performed to achieve the effect you want.
Windows Firewall Settings
Open Firewall Settings:
Press Win + R, type firewall.cpl, and press Enter.
Go to Advanced Settings:
On the left side of the firewall window, click “Advanced Settings”.
Create inbound rules:
Select “Inbound Rules” in the left menu.
Click “New Rule” on the right side.
Select “Custom” and click “Next”.
On the “Programs” page, select “All Programs” and click “Next”.
On the Protocols and Ports page, select ICMPv4 (for ping) and click Next.
On the Scope page, set the remote IP address:
In the “Remote IP Addresses” section, select “These IP addresses”.
Click Add, enter 192.168.xxx.0, and click OK.
On the Actions page, select Allow Connection and click Next.
On the Profile page, select the applicable profile (usually Domain, Private and Public) and click Next. “On the Profile page, select the applicable profile (usually Domain, Private, and Public) and click Next.
Give the rule a name, for example “Allow Ping from Specific IP”, and click Finish.
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.