<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Question about binding a port to an IP adress</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126ef80f52/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126ef80f52/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/126ef80f52/</id><updated>2022-01-05T15:14:41.243000Z</updated><subtitle>Recent posts to Question about binding a port to an IP adress</subtitle><entry><title>Question about binding a port to an IP adress</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126ef80f52/?limit=250#443f" rel="alternate"/><published>2022-01-05T15:14:41.243000Z</published><updated>2022-01-05T15:14:41.243000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.coma655f361973fb32446186b28275dfb60c4cae420</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you all for the clear anwsers :-)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question about binding a port to an IP adress</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126ef80f52/?limit=25#ead0" rel="alternate"/><published>2022-01-05T12:56:04.123000Z</published><updated>2022-01-05T12:56:04.123000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comd1a5287ee84faebf455b675710af77388a88cf7f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://help.codesys.com/webapp/_mod_edt_slave_device_tcp;product=core_modbus_configuration_editor;version=3.5.17.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_mod_edt_slave_device_tcp;product=core_modbus_configuration_editor;version=3.5.17.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you tick the "bind to adapter" on the general tab of the modbus slave device, and you have selected 127.0.0.1 at the Ethernet adapter, it should only be available to the localhost.&lt;/p&gt;
&lt;p&gt;to bind to all adapters (pre SP17 functionality), you should leave it unticked.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question about binding a port to an IP adress</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126ef80f52/?limit=25#21f7" rel="alternate"/><published>2022-01-05T12:53:43.429000Z</published><updated>2022-01-05T12:53:43.429000Z</updated><author><name>nothinrandom</name><uri>https://forge.codesys.com/u/nothinrandom/</uri></author><id>https://forge.codesys.com71cbbfd64ad3e495d5db0f5123aed5c7840540b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;👋 @h-hermsen,&lt;/p&gt;
&lt;p&gt;127.0.0.1 is a virtual interface that is typically referenced as &lt;strong&gt;localhost&lt;/strong&gt; and serves as &lt;strong&gt;loopback&lt;/strong&gt; traffic.  It's mainly used to diagnostic within the host itself since traffic can't go anywhere outside... listening (binding) to localhost would work across services if their traffic also originated from the same host.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you want your service to listen on all interfaces, then you could listen on &lt;strong&gt;0.0.0.0&lt;/strong&gt; instead.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In Linux, a good way of checking to see what services are listening to what ports is to use the following command &lt;strong&gt;lsof -i -P -n&lt;/strong&gt;.  In Windows, &lt;strong&gt;netstat -a&lt;/strong&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question about binding a port to an IP adress</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126ef80f52/?limit=250#71e1" rel="alternate"/><published>2022-01-05T11:23:32.393000Z</published><updated>2022-01-05T11:23:32.393000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.comde8470618911d9c795d4e07ab1039cc7dcc6d40b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;My question is fairly simple;&lt;/p&gt;
&lt;p&gt;If I select 127.0.0.1 in RPi and bind port 502 to it,&lt;br/&gt;
will it automagically be available for ALL configured IP adresses on the RPi?&lt;/p&gt;
&lt;p&gt;Eg: I bind to 127.0.0.1, in my example it will be available for 192.168.168.14 (eth0) AND 192.168.168.15 (wlan0)?&lt;/p&gt;
&lt;p&gt;If I bind to 192.168.168.14 , in my example it will be available for 192.168.168.14 (eth0) ONLY.&lt;/p&gt;
&lt;p&gt;If I bind to 192.168.168.15 , in my example it will be available for 192.168.168.15 (wlan0) ONLY.&lt;/p&gt;
&lt;p&gt;Is this assumption correct?&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>