I have installed MongoDB and its set up as windows service. When I try to set up replicaSet I am getting error \"Only one usage of each socket address (protocol/network address/
Not covering the service part.
but setting up sharded replica set. Try this blog to setup mongodb cluster on your local, it has all the configuration files with windows script to create required folder structure.
https://medium.com/@arun2pratap/set-up-mongodb-sharded-cluster-for-windows-with-just-a-double-click-6eedbb7b79e