# QuestionHow do I send a file over the network

#### 12padams

##### Well-known member
I ahve tried using the code:

VB.NET:
My.Computer.Network.UploadFile("C:\Users\Phillip\Desktop\test.txt", "http://10.0.0.2/c:/text.txt", "my username, "mypassword")

but it does not work...

whats the proper format for entering a location to a computer over the network?

Also... whats a way to send a file to a computer over the internet such as my friends computer...

The reason I am doing this is because I plan to make some programs that run based on text files and a basic example of this is a chat program... but I do plan for other things as well...

EDIT:

Used this code:

VB.NET:
My.Computer.Network.UploadFile("C:\Users\Phillip\Desktop\test.txt", "\\PHILIPADAMS-PC\USERS\Philip Adams\text.txt", "myusername", "mypass")

and it worked... now how can I send over the internet... Also is there another way i can send over the network like using the IP instead of computer name?

Also how do I send it to other computers?

Last edited:

#### JohnH

##### VB.NET Forum Moderator
Staff member
Upload via internet is usually done through a Ftp server, like UploadFile(path, "ftp://serverdomain-or-ip", credentials)

#### 12padams

##### Well-known member
using ftp:// or file:// or http:// just results in it saying "The given paths format is not supported... What do I do?

(without Getting a domain name)

#### JohnH

##### VB.NET Forum Moderator
Staff member
You don't need a domain name, but you need a Ftp server.

#### 12padams

##### Well-known member
Thanks I'll turn my local computer into an FTP server

Last edited:

#### Learner VBNET

##### Member
Send the file to your friend via SKYPE if your friend and yourself can be logged into SKYPE at the same time.

Replies
2
Views
261
Replies
5
Views
9K
Replies
14
Views
3K
Replies
0
Views
852
Replies
2
Views
852