<?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: vkopmp07</title>
    <description>The latest articles on DEV Community by vkopmp07 (@vkopmp07).</description>
    <link>https://dev.to/vkopmp07</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%2F620993%2F086c70d2-c9eb-4b14-8f4d-aaaebd5bdfe9.png</url>
      <title>DEV Community: vkopmp07</title>
      <link>https://dev.to/vkopmp07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vkopmp07"/>
    <language>en</language>
    <item>
      <title>What are sockets in computer networks?</title>
      <dc:creator>vkopmp07</dc:creator>
      <pubDate>Tue, 27 Apr 2021 04:18:25 +0000</pubDate>
      <link>https://dev.to/vkopmp07/what-are-sockets-in-computer-networks-564c</link>
      <guid>https://dev.to/vkopmp07/what-are-sockets-in-computer-networks-564c</guid>
      <description>&lt;p&gt;Two processes that run on the same machine, or different machines, communicate through sockets. &lt;strong&gt;Sockets&lt;/strong&gt; are seen as the end of the two-way communication between two processes; they allow processes to communicate with each other ​using a file descriptor and are commonly used in client-server applications that allow ​for ​communication between multiple applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How sockets are created&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A socket is created by concatenating the IP number of a system and a software port number (not a ​hardware port number). This allows the process to know the address of the system (the IP address) and the address where the information needs to be sent (the port number). The IP number and the port number are separated by a ​&lt;code&gt;:&lt;/code&gt;.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TknLQdGn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9eb9r8ceocvqvb4vyzoi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TknLQdGn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9eb9r8ceocvqvb4vyzoi.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
The diagram above shows two different applications communicating with one another through sockets.&lt;/p&gt;

&lt;p&gt;In this diagram, application 1 sends the data to IP number &lt;code&gt;192.168.16.21&lt;/code&gt; of application 2, port &lt;code&gt;100&lt;/code&gt;, while application 2 sends the data to ​IP number &lt;code&gt;192.168.1.1&lt;/code&gt; of application 1, port ​&lt;code&gt;80&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>sockets</category>
      <category>computer</category>
      <category>networks</category>
    </item>
  </channel>
</rss>
