<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jelly Eclipse</title>
    <description>The latest articles on DEV Community by Jelly Eclipse (@jelly_eclipse_aa92116d069).</description>
    <link>https://dev.to/jelly_eclipse_aa92116d069</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2867288%2Fd4ac8354-3863-408c-8ece-79ea713dcf4c.png</url>
      <title>DEV Community: Jelly Eclipse</title>
      <link>https://dev.to/jelly_eclipse_aa92116d069</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jelly_eclipse_aa92116d069"/>
    <language>en</language>
    <item>
      <title>java.net.ConnectException: Connection refused</title>
      <dc:creator>Jelly Eclipse</dc:creator>
      <pubDate>Sat, 15 Feb 2025 17:00:10 +0000</pubDate>
      <link>https://dev.to/jelly_eclipse_aa92116d069/javanetconnectexception-connection-refused-2oaj</link>
      <guid>https://dev.to/jelly_eclipse_aa92116d069/javanetconnectexception-connection-refused-2oaj</guid>
      <description>&lt;p&gt;Three checks:&lt;br&gt;
1) Run the Server code before running the Client code.&lt;br&gt;
2)instead of this Socket clientSocket = new Socket("localhost", 5000);&lt;/p&gt;

&lt;p&gt;do&lt;/p&gt;

&lt;p&gt;Socket clientSocket = new Socket("127.0.0.1", 5000);&lt;/p&gt;

&lt;p&gt;3)While hitting the url don't type "https://" type "http://" &lt;/p&gt;

&lt;p&gt;Hope above might help the beginners those who are trying to connect client and  server on the same computer&lt;/p&gt;

&lt;p&gt;For those who are trying to connect to the other server rather than local &lt;/p&gt;

&lt;p&gt;check for firewall blocking the connection or it might the listen backlog queue is full.&lt;/p&gt;

</description>
      <category>java</category>
      <category>socket</category>
      <category>networking</category>
      <category>tcp</category>
    </item>
  </channel>
</rss>
