Mongos - Query error
You cannot mix and match resolvable and non-resolvable host addresses in your cluster.

When you started your config servers and another mongos, you had told them their hostnames are X.X.X.X (the IP you masked in your error message).   You are now trying to start a mongos using localhost for the host name/IP - that is not allowed.

You must use identical configdb string to every mongos every time in a sharded cluster.