# Akka Cluster Not Joining Seed Nodes By Default

**URL:** <https://discuss.akka.io/t/akka-cluster-not-joining-seed-nodes-by-default/3425>\
**Category:** Akka Libraries\
**Tags:** akka-cluster\
**Created:** [February 11, 2019, 4:20pm UTC](https://discuss.akka.io/t/akka-cluster-not-joining-seed-nodes-by-default/3425 "2019-02-11T16:20:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rootaccess](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@rootaccess](https://discuss.akka.io/u/rootaccess)\
**Post date:** [February 11, 2019, 4:20pm UTC](https://discuss.akka.io/t/akka-cluster-not-joining-seed-nodes-by-default/3425/1 "2019-02-11T16:20:38Z")

</div>

Hello,I downloaded the sample app from [https://github.com/akka/akka-samples/tree/2.5/akka-sample-cluster-scala](https://github.com/akka/akka-samples/tree/2.5/akka-sample-cluster-scala) . i can run this sample without a problem because it inserts each port 2551 , 2552 into the configuration on the actor system.

But when i remove these ports and run the app. It fails with the error  
`Remote connection to [null] failed with java.net.ConnectException: Connection refused: /127.0.0.1:2552`  
and  
`Remote connection to [null] failed with java.net.ConnectException: Connection refused: /127.0.0.1:2551`

Why does this have to fail ? what is the correct way to start the server with seed nodes from application.conf . I have attached the screenshot

 ![45%20PM](https://us1.discourse-cdn.com/flex020/uploads/discuss_lightbend/original/2X/4/4ffe6dd9843f84e01080a410578bd86ebd6037d5.png)

---

<div class="post-metadata">

**Author:** ![davidogren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/davidogren/32/917_2.png) [@davidogren](https://discuss.akka.io/u/davidogren)\
**Post date:** [February 12, 2019, 10:28pm UTC](https://discuss.akka.io/t/akka-cluster-not-joining-seed-nodes-by-default/3425/2 "2019-02-12T22:28:30Z")

</div>

I’m not sure I understand your question, but let me try to answer some pieces and you can followup if you can rephrase your question.

The reason that you are passing in ports is that you have to pick which port that node is going to listen on. In a real world system, you would probably be running each node on a different server so they could all listen on the same port. But in this little demo you are running on the same machine, and therefore the same IP, and therefore you have to manually specify a port somehow.

Also, the reason you are getting the “remote connection to [null] failed with connection refused” is because since you didn’t start a node on 2551 and 2551, so there aren’t any seed nodes listening on those ports.

---

<div class="post-metadata">

**Author:** ![rootaccess](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@rootaccess](https://discuss.akka.io/u/rootaccess)\
**Post date:** [February 13, 2019, 6:48am UTC](https://discuss.akka.io/t/akka-cluster-not-joining-seed-nodes-by-default/3425/3 "2019-02-13T06:48:33Z")

</div>

Thank you , that answers my question.
