How to Send a File to an IP Address With Command Prompt

By Jonah Quant

The File Transfer Protocol (FTP) is an Internet standard for downloading and uploading files from/to servers hosting data repositories. Modern operating systems include command-line FTP client software in their factory configurations. You can use a command prompt on your computer to send a local file to a remote server located at a known Internet Protocol (IP) address.

Step 1

Click "Start" and type "run" into the search box. Click on the "Run" link, then type "cmd" and press "Enter." Click on the new window to select it.

Step 2

Change the command prompt's current directory to the folder containing the file you want to send by typing the following command:cd "\myFiles\projectA"Replace "\myFiles\projectA" with the full path to the folder containing the file. Press "Enter."

Step 3

Type the following command to launch the command-line FTP client on your prompt:ftp "" with the IP address of the computer where you want to send the file. Press "Enter." The FTP client will await your next command on its own command prompt.

Step 4

Type the following command:put myFile.docReplace "myFile.doc" with the name of the file you want to send. Press "Enter." After a delay that depends on the file's size, the FTP client will return control to you. At that point, the file will have been successfully sent to the remote IP address.

Step 5

Type the following command:byePress "Enter." The FTP client will exit to the usual command prompt.

References & Resources