<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to TCP/IP connection with authentication ?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/9ca6a7c2c1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/9ca6a7c2c1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/9ca6a7c2c1/</id><updated>2020-02-27T20:27:43.054000Z</updated><subtitle>Recent posts to TCP/IP connection with authentication ?</subtitle><entry><title>TCP/IP connection with authentication ?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/9ca6a7c2c1/?limit=25#4142" rel="alternate"/><published>2020-02-27T20:27:43.054000Z</published><updated>2020-02-27T20:27:43.054000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.com3132ad839f02cc0cf5604f75c88304fd98d22d9e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You could modify the FTP FB found in the Oscat Network Lib.  FTP should use similar authentication.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.oscat.de/" rel="nofollow"&gt;http://www.oscat.de/&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TCP/IP connection with authentication ?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/9ca6a7c2c1/?limit=25#e41e" rel="alternate"/><published>2020-02-27T20:27:41.720000Z</published><updated>2020-02-27T20:27:41.720000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.comb4dd9c25023033916f0234d20c7cd61232f051bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the reply.&lt;br/&gt;
What you suggest was exactly what I was trying to avoid. But as it seems to be no other way, I did it that way.&lt;br/&gt;
It works in this case, but the question still remains - if something requires a username/password, but doesn't accept telnet connections, how to connect to it?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TCP/IP connection with authentication ?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/9ca6a7c2c1/?limit=25#4788" rel="alternate"/><published>2020-02-27T20:27:37.938000Z</published><updated>2020-02-27T20:27:37.938000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.come34d9f0ac47454732c1a390d66b29d1accf15d64</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is new for me as well, but can't you Listen for the string 'Usernamne:' and 'Password:' and respond by sending the username and password in string throu TCP/IP.&lt;/p&gt;
&lt;p&gt;On 3S website they have some examples on tcp/ip, tryout to see if you get the strings from the camera.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="ftp://ftp2.3s-software.com/pub/Examples/Projects/CoDeSysV2.3/Communication/" rel="nofollow"&gt;ftp://ftp2.3s-software.com/pub/Examples ... unication/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;/Torbjörn&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TCP/IP connection with authentication ?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/9ca6a7c2c1/?limit=25#a24a" rel="alternate"/><published>2020-02-27T20:27:36.604000Z</published><updated>2020-02-27T20:27:36.604000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.com9a0ebc4a5af363366909ced0b11acb92897ce486</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need to establish a TCP/IP connection and exchange data between my PLC (Festo CPX-CEC-C1) and a Cognex Dataman camera. &lt;br/&gt;
PLC is a client, camera is a server. &lt;br/&gt;
The problem is the camera requires a username/password, and I have no idea how to provide them.&lt;/p&gt;
&lt;p&gt;The only solution I found so far is to connect to port23 (telnet) - in this case after the connection is established the camera sends a 'Username: ' string -&amp;gt; I send back a reply -&amp;gt; the camera sends 'Password: ' string -&amp;gt; I send reply -&amp;gt; then I can exchange data etc. &lt;br/&gt;
However if try to connect to a different port (on which camera is configured to listen) I get connection refused error because I do not provide username/password.&lt;br/&gt;
So the question is - how to send a username/password ? &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>