Can Silverlight use the LAN without an internet connection?

748 views Asked by At

I understand that trusted silverlight applications can communicate with each other over the LAN connection (peer to peer). Can they do this without an internet connection once installed out of browser? Do they need to first download some sort of Access Policy?

If not, is there some alternative way of doing this, perhaps with some kind of helper service on the computer?

Can they use similar techniques to talk to Local non-Silverlight devices, e.g. could a trusted silverlight application talk to an iPhone app over a local area network?

3

There are 3 answers

2
ForbesLindesay On BEST ANSWER
System.Net.Sockets.UdpAnySourceMulticastClient

Does allow you to connect between Multiple Silverlight applications on the same LAN. It does not require any internet connection after the application is installed out of browser.

I'm not clear if this could be used for communication with non-Silverlight applications althouh I believe it probably could since UDP Multicast is a standard protocol.

In situations where the network infrastructure is older it may not support UDP Multicast addresses. In this case, the best solution would be to install a separate local server on one of the client machines, to which all other silverlight applications could connect (once the user had typed in the IP address).

1
AnthonyWJones On

I'm not sure where you got your information from but as far as I'm aware there is no builtin way for Silverlight applications to connect to each other peer-to-peer. However it is possible to place a simple server application on the LAN through which Silverlight applications running on different nodes can communicate.

The plumbing needed to create peer-to-peer pipes is missing from Silverlight. It only has a means to connect to a specific TCP/IP port or to listen to Multicast UDP sources, it can't create a Listening port that waits for a connection nor generate UDP output.

1
Ian Ringrose On

You could go this by calling COM objects from Silverlight, however

Just because you can hammer in a nail with a screw driver, does not make the screw driver the best tool for the job.

Have a look at using WPF so you get the full .net framework.