Am trying to perform an ftp connection to another server.
So currently i have done
$host="server_to_connet_ip"
ftp_connect ( $host [ 21 [, int $timeout = 90 ]] )
This works totally fine when the the server to connect to doesnt limit the ip address.
Currently there is a limit on the ip address that can connect to the server and my vps ip address has already been whitelisted How can i still perform the ftp connection with the origin ip address as my server ip address(where application is hosted) as currently each and every request i make happen to appear to be from my local computer outgoing ip address not the servers(where application is hosted) ip address
I have also checked on using curl as an alternative but i cannot figure out how.
SO in curl this would be something like
curl ftp://serverip --user myname:mypassword
But how can this be achieved in such away that when performing the ftp connection request the request will originate from my server ip address(when i host my application) not my local computer ip address.