0

インターネットを介してリモートでデスクトップアプリケーションに特定のパラメータを渡したい。このようなアプリケーションの多くはサーバーを簡単に停止させる可能性があるため、アプリケーションがサーバーに繰り返し接続することは望ましくありません。サーバーから接続を開始する方法はありますか?アプリケーションの多くは世界中の多くのコンピューターで実行されているため、どうすればアプリケーションを識別できますか。どこから始めればよいのかわかりません。サーバー側のC#とASP.NET/PHPでこれを実行しようとしています。アドバイスをお願いします。

4

2 に答える 2

1

サーバーから接続を開始する方法はありますか?

いいえ。クライアントが最初にサーバーに接続し、IPアドレス、使用するポートなどをサーバーに通知する必要があります。サーバーは、クライアントが変更されないことを期待して、クライアントごとに保持する必要があります。それらは変化します)。

クライアントによる長時間のポーリングは、使用したくない場合でも、実行していることに対する適切なソリューションです。

于 2012-07-08T11:30:03.773 に答える
0

There are many different ways you could approach this, just thinking out of the box, both your app and the server could utilize a different mechanism for transferring the settings. I'm not recommending any of these methods, please don't shoot me down, they are all just ideas.

As an example, your server could connect out using FTP and output the updated settings to an FTP server on each PC. You could install something like Filezilla on each machine which runs your app. You'd obviously need to configure port forwarding on the router to allow the server FTP access.

You could use email. Setting up an email account where your server can login to send out the settings. Your app could possibly login to the same email account possibly even a single Gmail account to retrieve the settings.

Another idea would be to use a file sharing service like Dropbox, Google Drive or similar and where the settings could be shared. Obviously this would involve learning any API and I'm not sure if there are any restrictions on this approach.

The last idea and probably my preferred approach would be to host a web service and database on a remote server, both your server and the applications would connect to the same service to transfer the settings. This approach is obviously firewall/router friendly as all the clients connect out to the web service to collect the required data.

Hope this helps?

于 2012-07-08T20:23:25.980 に答える