Monday, October 10, 2022

[SOLVED] how to use cURL on specific interface

Issue

I am developing a code in c, which simply FTPs the files on FTP server by using curl utility, by following this rel="noreferrer">example

now i have one simple thing to do, specify curl to use particular interface (IP) of the server for upload, as other interface of the server is associated with other socket connection.

is there any way to do it?


Solution

Seems like curl support --interface option

curl --interface eth0 


Answered By - MrFreezer
Answer Checked By - Candace Johnson (WPSolving Volunteer)