tags:

views:

162

answers:

1

Is it possible to run a TCP Ping in Silverlight? I know raw sockets are not allowed, which is a big limit. But can you achieve something similar to speedtest.net which does a ping utilizing Flash?

+2  A: 

It depends on what you're wanting to do. If you want to do a "real" ping, i.e., using ICMP, no you can't. But if you just want to know whether you're connected to the Internet in some fashion, or if some server is online, you could use the WebClient classes to see if a given web server responds, or if you control the server, you could use the Socket classes to try to open up a connection to a Silverlight-accessible port.

Ken Smith