Unable to connect to my MongoDB using Compass, 3Nodes replica on a single PC

Hello Team,

I have 3 nodes running on a Windows 11 System.
Where I have rightly specified config files for all nodes.
I am able to connect to my mongo dB using compass on the same system.
However, If I use Compass from another pc I am not being able to connect to my Mongodb that is in a cloud pc.
I am already using ip:port,ip:port,ip:port kind of connection string with replicasetname.

When I try to connect, it says connect ECONNREFUSED 127.0.0.1:27018, (ON COMPASS UI)

I have also checked the logs below are they,

</>

{"t":{"$date":"2023-10-25T13:31:59.976+05:30"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"MyhomePC_IP:52534","uuid":{"uuid":{"$uuid":"986140b3-5df9-4625-a2d0-ea020bcc53a0"}},"connectionId":69,"connectionCount":18}}
{"t":{"$date":"2023-10-25T13:31:59.977+05:30"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn69","msg":"client metadata","attr":{"remote":"MyhomePC_IP:52534","client":"conn69","doc":{"application":{"name":"MongoDB Compass"},"driver":{"name":"nodejs","version":"5.7.0"},"platform":"Node.js v18.12.1, LE","os":{"name":"win32","architecture":"x64","version":"10.0.22621","type":"Windows_NT"}}}}
{"t":{"$date":"2023-10-25T13:32:00.215+05:30"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn69","msg":"Connection ended","attr":{"remote":"MyhomePC_IP:52534","uuid":{"uuid":{"$uuid":"986140b3-5df9-4625-a2d0-ea020bcc53a0"}},"connectionId":69,"connectionCount":17}}

</>

My rs.status shows all are in healthy state. My firewalls are open for the required ports.

What could be the reason I am facing this issue?

Note: I don’t face this problem when I have no replica set in my pc.
I had tried to have mongodb in two different for 2 nodes as well, had no luck.