UNPKG

@fakerjs/ip

Version:

IP package provides functionality to generate a fake ip value.

7 lines (6 loc) 230 B
export default function ip() { return Math.floor(Math.random() * 255) + '.' + Math.floor(Math.random() * 255) + '.' + Math.floor(Math.random() * 255) + '.' + Math.floor(Math.random() * 255); }