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

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.

Hands typing on laptop computer
How to Send a File to an IP Address With Command Prompt
credit: BrianAJackson/iStock/Getty Images

Step

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

Change the command prompt's current directory to the folder containing the file you want to send by typing the following command:

Step

cd "\myFiles\projectA"

Step

Replace "\myFiles\projectA" with the full path to the folder containing the file. Press "Enter."

Step

Type the following command to launch the command-line FTP client on your prompt:

Step

ftp 74.120.4.80

Step

Replace "74.120.4.80" 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

Type the following command:

Step

put myFile.doc

Step

Replace "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

Type the following command:

Step

bye

Step

Press "Enter." The FTP client will exit to the usual command prompt.