Note that there are some explanatory texts on larger screens.

plurals
  1. POCommunication between C# clients which are behind router and Java server which is on public internet
    primarykey
    data
    text
    <p>I have a C# applications which acts like a client and it can be installed on any system which is directly connected to public internet (through data cards or port forwarding) or they can be behind router also (without port forwarding).</p> <p>The other application which is developed using java acts like a server application which is on the public internet. Now, my java application wants to push a message to C# application which is behind router. Java application has the clients public and private (192.168.x.x) IP address. Java application is supposed to run 24x7.</p> <p>So, now there are two options for me:</p> <ol> <li><p>Whenever c# application starts it will establish a socket connection with java application and this socket connection will remain open till C# application gets closed.</p></li> <li><p>Whenever Java application has something for C# application it will create a socket connection with C# application then it will push the message and then close the connection.</p></li> </ol> <p>Now, with 1st option there is a problem that there will be lots of unnecessary connection since there can be thousands of client application and it may happen that on some day there will be nothing to push for some clients. and I don't know how to go for 2nd option.</p> <p>What will be the right way to accomplish this task (option 1 or 2)?</p> <p>Is UPnP protocol right for 2nd option? What are the open source UPnP libraries which has both the API's (C# and Java). I found one such called <a href="http://wiki.openhome.org/wiki/OhNet" rel="nofollow noreferrer">ohnet</a>. Will it be a right thing for me? I didn't found a single small example for OhNet to test.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload