Hey all,
I'm creating a situation where I have a client, and server. The server has a
dedicated IP but the clients have dynamic IP's. The server needs to be able
to push data to a client, but doesn't know the IP address of the clients. I
need it to push - that is, to be server initiated.
My solution is to maintain a VPN, where the client always stays connect to
the server since it knows the VPN server IP address. Then, once they are all
on the same virtual network, it should be easy to push to the client.
Is this the best solution?
If so, is there a way you can code in .NET to connect to a VPN, and also, to
check the connection, if it gets dropped, you reconnect.
Any Help would be appreciated!!
Deepesh
A G - 12 Mar 2005 08:49 GMT
you would need to use rasdial api to use the vpn model that you want .
but i think it might be more easier just to create a TCP client (for the
remote PC) and a tcp listener on the server , the clinet can run a a service
sending on different intervals the current ip address to the server ( if
multiple Pcs are on NAT , i would broadcast to them from the sever (to
fullfill initiated by server requirment ) and then each of the PCs can start
pulling from the server , to avoid having to maintain routing table .
Good Luck ,
Ahmed G.
> Hey all,
>
[quoted text clipped - 14 lines]
> Any Help would be appreciated!!
> Deepesh
Dan Kelley - 21 Mar 2005 17:19 GMT
Might be a bit late for you, but you could send data to a multicast address.
Using Udp as an example (although I am sure this can be achieved using any
protocol), you could use the UdpClient.JoinMulticastGroup method. All clients
who belong to the mutlicast group would automatically receive this data.
Obviously the protocol you use depends on your needs.
HTH
Dan
> Hey all,
>
[quoted text clipped - 14 lines]
> Any Help would be appreciated!!
> Deepesh