Quote:
Because it need loginname and password.
That means it requires you to pass the authentication information, so that server knows who is trying to access the service. You should pass this information to servers, it's not just your server, but every server requires this authentication model, for security, quota or any other purposes.
Typically, this is provided in the documentation of your server, the server shows the endpoints where you connect and also the headers which you require to pass (username and password). In .NET framework's networking you use
NetworkCredential
[
^] object to pass the information about authentication.
Have a look at this tip, it explains the concept of sending the username and password (a different implementation, of course) so give it a look,
Simple C# FTP Class[
^]