R: Check if a port of a server is active, measure response time

ping_port {pingr} | R Documentation

## Check if a port of a server is active, measure response time

### Description

Check if a port of a server is active, measure response time

`is_up()` checks if a web server is up.

### Usage

    ping_port(
      destination,
      port = 80L,
      continuous = FALSE,
      verbose = continuous,
      count = 3L,
      timeout = 1
    )

    is_up(destination, port = 80, timeout = 0.5, fail_on_dns_error = FALSE)

### Arguments

`destination` | Host name or IP address.
`port` | Port.
`continuous` | Logical, whether to keep pinging until the user interrupts.
`verbose` | Whether to print progress on the screen while pinging.
`count` | Number of pings to perform.
`timeout` | Timeout, in seconds. How long to wait for a ping to succeed.
`fail_on_dns_error` | If `TRUE` then `is_up()` fails if the DNS resolution fails. Otherwise it will return `FALSE`.

### Value

Vector of response times, in milliseconds. `NA` means no response within the timeout.

### Examples

    ping_port("127.0.0.1")
    ping_port("r-project.org")
    is_up("google.com")
    is_up("google.com", timeout = 0.01)

[Package pingr version 1.2.0 Index]