Wappler Custom Extension - Get Client IP address (node and PHP)

Introduction

In the world of reverse proxies and cloud servers the use of $_SERVER.REMOTE_ADDR as a method of tracking client IP addresses is become less and less effective
This simple extension uses the ipify.org API to get a more accurate IP address

Installation

Installation is via the project extension manager

or the npm is here.

https://www.npmjs.com/package/@hyperbytes/wappler-get-client-ip

Use

The extension can be found under the "Custom Extensions" group called "GetClientIP"

it has no inputs

Schema

The extension outputs the IP address and IP address type (IPv4 or IPv6)

{"myip":{"ip":"213.1.3.152","type":"IPv4"}}

3 Likes