tags:

views:

20

answers:

1

Is it possible for Siverlight to communicate directly with an open TCP port on the user's machine?

+1  A: 

in a word No.

You can use sockets (and therefore TCP) to communicate with open ports (in a limited range) on the server that is hosting the application, but you cannot connect to any other machines. if you need to interoperate with something on the client machine i would suggest using the new COM interoperability in Silverlight 4 (here is an example)

luke
I guess I can talk to the server and have that bounce back to the client. There are no firewall issues, so it should work.
Jonathan Allen
what are you trying to communicate with on the client machine?
luke
An old Windows application written in VB 6. Since VB6 can display web pages I thought that it could also display Silverlight apps. But it needs to be able to raise events in the host and this was the only thing I could think of.
Jonathan Allen
you could probably use javascript as a bridge language. js<--> sl is pretty easy and im sure there is a way for Vb to listen to js events in its hosted document.
luke