Hi @Sushant Sharma ,
have you tried to block incoming traffic on the local tcp port 1883?
netsh advfirewall firewall add rule name='test3' protocol=tcp dir=in action=block localport=1883
This should block the incoming TCP 1883 traffic from server to your windows machine on the windows machine, if I got your requirement right ;-)
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten