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

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
How to Send a File to an IP Address With Command Prompt
Image Credit: BrianAJackson/iStock/Getty Images

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.

Advertisement

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.

Video of the Day

Step 2

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

Advertisement

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:

Advertisement

ftp 74.120.4.80

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.

Advertisement

Step 4

Type the following command:

put myFile.doc

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.

Advertisement

Step 5

Type the following command:

bye

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

Video of the Day

Advertisement

Advertisement

references

Report an Issue

screenshot of the current page

Screenshot loading...