Can't connect to Replica Set

I am currently at Lecture: Setting Up a Replica Set. I try to connect to replica set, but I get this

2019-03-23T16:55:50.956+0000 W NETWORK [thread1] Failed to connect to, in(checking socket for error aft
er poll), reason: Connection refused

Any help? Thanks.

Please check our forums.You will get clues
ping local host and ping hostname
They should map to not
You may have to edit your /etc/hosts file

Check and make the required changes to the /etc/hosts file.
The fix is in the forum