Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# で webclient を使用してファイルをダウンロードしようとしています。
ファイルの場所のリモート ポートは 20114 です。webclient に 20114 ポートを使用するように指示するにはどうすればよいですか?
URL をhttp://www.website.com:20114/folder/file.extとして設定します
私の自発的な推測 (試したことはありません) は、単純に URL に含めることです。
WebClient client = new WebClient(); client.DownloadFile(@"http://host:20114/file.ext", localFilename);