Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I need to ping to an network with flash or actionscript

I have created a network trouble shooting tool in flash. The design will have all the componenets on the screen. I have to ping to every component once in minute. I have finished the design part.

Please someone help me how do i ping a webaddress or IP in flash.

I need a sample code.. Im using Flash CS3

like image 306
Chandra Eskay Avatar asked Dec 27 '22 21:12

Chandra Eskay


1 Answers

In short, you can't.

In longer: you won't be able to ping, because a ping is actually an ICMP packet, and I don't believe Flash can send those. If there is some UDP or TCP service running on the machine you're trying to ping, though, AND the machine is running a socket policy server, then you would be able to use the Socket class to connect directly to that service (which could act like a ping).

like image 200
David Wolever Avatar answered Jan 06 '23 13:01

David Wolever