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.
Lantis S. (Guest)
on 2006-05-23 04:12
Hi,

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

Thanks,

Lantis.
Warren N. (Guest)
on 2006-05-23 04:22
(Received via mailing list)
On 5/23/06, Lantis S. <removed_email_address@domain.invalid> 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.