Need to specify distinct Transmission PORT from WinSCP client for specific FTP sessions

Advertisement

PilotMelch
Joined:
Posts:
1
Location:
MN

Need to specify distinct Transmission PORT from WinSCP client for specific FTP sessions

I am using WinSCP 5.17.3. I need to connect FTP to built-in servers on multiple IP devices connected to a LAN, behind a single public IP address. I cannot configure these serves for ports or really anything other than user/password.

I can configure Port Address Translation (PAT) on the router to connect to these devices' FTP servers, Control connection, on different incoming Control ports, such as:

public IP:61021 -> 192.168.1.230:21
public IP:61121 -> 192.168.1.231:21
etc.

I could likewise also configure PAT for specific ports for each of these devices to use for Transmission connection. However...

Although these devices' embedded FTP servers support PASV, the port they choose and send back appears random, and thus not PAT-able.

So, I wanted to specify PORT from WinSCP, in Active mode, for each session configuration, with a known distinct port I could PAT on the router to each device.

But I can't find any way to specify the PORT in WinSCP by session config.

Is there a way to do that, or is it always randomly assigned by WinSCP when in Active FTP mode?

Again, I have multiple LAN devices with built-in FTP servers that cannot be configured. They always respond to port 21 for Control and will accept an Active PORT command, or PASV mode. But both modes result in random ports for the Transmission connection, and I need it to be known so I can PAT them for each device on the router.

In order to PAT the Transmission ports, differently for each device, I need to be able to either configure the FTP server to respond with a specific port, by device in PASV (which I cannot do) or have the client (WinSCP) to specify PORT for an Active connection to a known, PAT'ed port for each Session.

Can I specify the PORT to use, differently for each configured Session in WinSCP?

This seems like it ought to be possible and I'm just missing something.

Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
33,846
Location:
Prague, Czechia

Re: Need to specify distinct Transmission PORT from WinSCP client for specific FTP sessions

Active mode ports are random.
Ports configuration request is tracked here:
https://winscp.net/tracker/958
You can vote for it.

Reply with quote

Advertisement

You can post new topics in this forum