I have a doubt about the WinSCP configuration.
I have a device with FTP server. I dont have access to ftp server configuration in this device. Its a industrial equipment. This device is connect in a local network and has ip address 192.168.1.16.
This device is connect to a PC with Windows. This PC has 2 network interfaces. One interface to local network (ip 192.168.1.30) and other to corporative network (ip 10.17.10.5).
A second PC with Windows has only interface to corporative network (ip 10.17.10.20) and I need that this PC have a FTP client and connect to FTP Server in the device in local network.
I installed a Port Forwarding (I'm using DoorPointer) in the PC with 2 network interfaces. When this PC receive request in port 5028, it redirects to 192.168.1.16 on port 21.
So, the FTP Client can connect to FTP Server. No problem for it. But when I need to send LIST command I receive error.
I think need to configure the FTP connection to active mode and just one specifical port for data connection. I think this is because I need to configure on Port Forwarding a specifical port to return the data to second PC.
Follows my configuration in DoorPointer:
From Port | To Host | To Port
5028 | 192.168.1.16 | 21
1024 | 10.17.10.20 | 1024
In the case, I configured the port number 1024 for data connection. So, the FTP Server send the data through port 1024.
I tested with FileZilla Client and it works. But in WinSCP I cannot configure a specifical port for data connection and I belive that it is necessary because I need to use the Port Forwarding.
I want use WinSCP because I can write automatical scripts.
Can you help me?