contact client pc from web server
-
Let's say there is a client app installed on a computer. I want to send notification to the client app from the web server. I know I can do this with a client and server app by opening a tcp connection. Can a non-http tcp connection be opened between the client app and the http server? Do I need to run a client app on the web server? Will running such an app, like an .exe file, cause performed problems for a standard http web server? Would I need a dedicated server? Initiating periodic http requests from client app would not be fast enough for my requirements.
-
Let's say there is a client app installed on a computer. I want to send notification to the client app from the web server. I know I can do this with a client and server app by opening a tcp connection. Can a non-http tcp connection be opened between the client app and the http server? Do I need to run a client app on the web server? Will running such an app, like an .exe file, cause performed problems for a standard http web server? Would I need a dedicated server? Initiating periodic http requests from client app would not be fast enough for my requirements.
As has been pointed out before, this is the wrong way to do it. Standard network communication should always be initiated from the client, with the server always listening for connection requests. If you try to initiate communication from the server what happens if the client is not listening?
dene99970 wrote:
Initiating periodic http requests from client app would not be fast enough for my requirements.
What evidence do you have for this statement?
It's time for a new signature.
-
As has been pointed out before, this is the wrong way to do it. Standard network communication should always be initiated from the client, with the server always listening for connection requests. If you try to initiate communication from the server what happens if the client is not listening?
dene99970 wrote:
Initiating periodic http requests from client app would not be fast enough for my requirements.
What evidence do you have for this statement?
It's time for a new signature.
I guess what I mean to say is that once connection is initiated by client, how can I have fast real-time communcation between client and web server. Can that be done on one of the many shared hosting solutions that cost $20 a month or so, or do I need a dedicated server with 2 seperate components: 1. the web server 2. the server app programmed in perhaps c++, java, or whatever
-
I guess what I mean to say is that once connection is initiated by client, how can I have fast real-time communcation between client and web server. Can that be done on one of the many shared hosting solutions that cost $20 a month or so, or do I need a dedicated server with 2 seperate components: 1. the web server 2. the server app programmed in perhaps c++, java, or whatever
I'm not sure that I could answer this question as so much depends on the location of the server and client, the bandwidth available, line speed, traffic volumes etc. The only way to get a reasonable idea of speed would be to talk to the hosting services to see what facilities they offer.
It's time for a new signature.