Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASM
I want duplex communication between Sever and Clients.

My Server PC have web Application And On my Clients PC Have local DB and windows Application. if my Clients do some transaction using window application ,I want to know the updated form of Data of Clients Local DB(SQL server).

Note 1) Client PC using Router base Internet ,Mean the IP of Client PC Is Change after hour or sometime after 24 hour,because its not Static .its Proxy IP (Public IP) Note 2) Client PC is not on LAN network. and i don't want its too.

NOTE 3) I don't want to allow Remotely Access on Client SQL SERVER.

NOTE 4) Clients Are more than 100 and Not on LAN or work group.(e.g one client in usa,one client in UK and one in France and so on) ,they are using a same Window application.

Note 5) Clients PC can access Server via Services.But Problem is Server can't access Client Pc cuz of Clients pc having Dynamic IP,not static ip Due to Router use..

Please give me Good Trick to handle this Type of Issue. what should i use in my Server Web application for dublix communication with Clients...websercvices or SingleR or WebSocket or any trick in your mind ? the main issue i can't get static ip of Client pc via internet connectivity.so what should i do now??

Thanks you !
Posted

1 solution

Normally, Web applications are not designed for duplex communications. Originally, HTTP was designed to support pure client-server. The problem here is to have server push. Please see my past answer discussing related problems and the articles referenced below:
Application 'dashboard' for website accounts[^],
http://en.wikipedia.org/wiki/Client-server_model[^],
http://en.wikipedia.org/wiki/Server_push[^],
http://en.wikipedia.org/wiki/Pull_technology[^].

However, there are some ways to work around the problem; they are not very simple. First, you can think about having a duplex Web Service. Please see this CodeProject article: Duplex Web Services[^].

You can also consider using some of the server push approaches, in particular, SignalR (please see the links in my past answer referenced by my first link above).

—SA
 
Share this answer
 
Comments
[no name] 20-Nov-14 13:05pm    
Thanks,let me try its ,then i tell you after ..
[no name] 21-Nov-14 4:51am    
Heloo Sergey .I'm sorry I haven't get any solution from those link ,Please give me some Short trick to use,i'm not writing a theory on my that issue . the main issue how can Server get data from client PC using Technology like Websercies,SinglR,WebSocket etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900