# FTP Connection from B&R

**URL:** <https://community.br-automation.com/t/ftp-connection-from-b-r/6027>\
**Category:** Programming\
**Tags:** automation-runtime, library\
**Created:** [February 25, 2025, 12:15pm UTC](https://community.br-automation.com/t/ftp-connection-from-b-r/6027 "2025-02-25T12:15:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Myat\_Min\_Thu](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@Myat\_Min\_Thu](https://community.br-automation.com/u/Myat_Min_Thu)\
**Post date:** [February 25, 2025, 12:15pm UTC](https://community.br-automation.com/t/ftp-connection-from-b-r/6027/1 "2025-02-25T12:15:08Z")

</div>

I am having Problem regarding connecting a FTP Server in network from B&R in my Host PC.

This is my code

zpMU\_Unit.Inst.Prv.Temp.device := ‘FTPTest’;  
zpMU\_Unit.Inst.Prv.Temp.param := ‘/SIP=192.168.0.50 /PROTOCOL=ftp /USER=username/PASSWORD=password’;  
zpMU\_Unit.Inst.Prv.Temp.ftpClient(enable := TRUE, pDevice := ADR(zpMU\_Unit.Inst.Prv.Temp.device), pParam := ADR(zpMU\_Unit.Inst.Prv.Temp.param));

With this code, I keep having Error No 65535 and i\_result 9999

 ![Unbenannt](https://europe1.discourse-cdn.com/brcommunity/original/2X/9/92cf59ae64d1f499ed6ff3740ce8cc2b39256949.png)

My IP address of FTP is inside a pc with ip address 192.168.0.50 and we are in the same network. My ARSim is H4.93 and I could save the file locally but I cannot connect to FTP.

---

<div class="post-metadata">

**Author:** ![florent.boissadier](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@florent.boissadier](https://community.br-automation.com/u/florent.boissadier)\
**Post date:** [February 25, 2025, 4:23pm UTC](https://community.br-automation.com/t/ftp-connection-from-b-r/6027/2 "2025-02-25T16:23:28Z")

</div>

Hi,

You are using ArSim and by default ArSim as access to 127.0.0.1 interface. This interface cannot access your IP 192.168.0.50. You can change ArSim IP address from configuration and set it to 0.0.0.0 but take care it will be able to listen on all your PC interfaces.

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/3/3cc371bb3f49445f0d293380b2645834b5dee7d1.png)

Hope that could help,

Regards,  
Florent

---

<div class="post-metadata">

**Author:** ![Myat\_Min\_Thu](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@Myat\_Min\_Thu](https://community.br-automation.com/u/Myat_Min_Thu)\
**Post date:** [February 27, 2025, 10:15am UTC](https://community.br-automation.com/t/ftp-connection-from-b-r/6027/3 "2025-02-27T10:15:48Z")

</div>

Thank you for the response. I have tested that way but it is not connected to my FTP Server yet.  
I have found this on CPU Properties - FTP Server and maybe it might be the problem of no connection as mine is ARsim H4.93

 ![Unbenannt](https://europe1.discourse-cdn.com/brcommunity/original/2X/3/37195a9adc2ef6bd977594055bfa5c7417eac09d.png)

I will have to test it on actual hardware and see the update, if it works or not.

Regards,  
Myat

---

<div class="post-metadata">

**Author:** ![florent.boissadier](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@florent.boissadier](https://community.br-automation.com/u/florent.boissadier)\
**Post date:** [February 27, 2025, 10:41am UTC](https://community.br-automation.com/t/ftp-connection-from-b-r/6027/4 "2025-02-27T10:41:54Z")

</div>

Hi,  
Hum I think that this CPU properties “FTP server” is not available on ARSim, but it means that you can’t create a FTP server with an ARSim, but I’m pretty sure that you can be a FTP client.

But your right testing on real hardware could be a good solution 🙂

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [April 11, 2025, 8:24am UTC](https://community.br-automation.com/t/ftp-connection-from-b-r/6027/5 "2025-04-11T08:24:33Z")

</div>

Automatically bumped on April 11, 2025, 8:24am UTC


