Forum: Ruby on Rails Detecting internet connection

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
15977b0a3b7e270bf3d1baaadfb79a59?d=identicon&s=25 Lantis Sephiro (lantis)
on 2006-05-23 02:12
Hi,

Is it possible to detect whether the internet connection is on from the
application?

Thanks,

Lantis.
711eb56e970b483e2c9d929bd036a89e?d=identicon&s=25 Warren Noronha (Guest)
on 2006-05-23 02:22
(Received via mailing list)
On 5/23/06, Lantis Sephiro <semutluthu@yahoo.com> wrote:
>
> Is it possible to detect whether the internet connection is on from the
> application?


require 'ping'
puts "connection alive" if Ping.pingecho("www.gooogle.com", 10)

You get the idea...

Warren Brian Noronha
This topic is locked and can not be replied to.