ipaddr?

Synopsis

(ipaddr? object)

Parameters

  • object

Description

This predicate returns #t if the object is an IP address, otherwise #f.

Side Effects

Return Value

#t or #f

Example

> ipaddr?
#<primitive-procedure ipaddr?>
> (ipaddr? '2001:DB8::1:1)
#t
> (ipaddr? 127.0.0.1)
#t
> (ipaddr? '127.0.0)
#f
>