# Wago controller read WAN IP

**URL:** https://www.wago.community/t/wago-controller-read-wan-ip/1340
**Category:** CODESYS
**Tags:** pfc200, codesys, pfc100
**Created:** [November 19, 2024, 8:56pm UTC](https://www.wago.community/t/wago-controller-read-wan-ip/1340 "2024-11-19T20:56:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Runeas](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Runeas](https://www.wago.community/u/Runeas)
#### Post date: [November 19, 2024, 8:56pm UTC](https://www.wago.community/t/wago-controller-read-wan-ip/1340/1 "2024-11-19T20:56:05Z")

</div>

It’s possible to read out PFC-controller’s WAN IP from a function block or antoher method into a variable (ex. STRING?) in CoDeSys?

---

<div class="post-metadata">

### Author: ![WagoDamRud](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagodamrud/32/258_2.png) [@WagoDamRud](https://www.wago.community/u/WagoDamRud)
#### Post date: [November 20, 2024, 4:44pm UTC](https://www.wago.community/t/wago-controller-read-wan-ip/1340/2 "2024-11-20T16:44:47Z")

</div>

you can send GET (using _WagoAppHttp_ library) to _[ifconfig.me/ip](http://ifconfig.me/ip)_ or other servers who reply with you WAN IP

except 8217 with modem, its not possible to know you WAN IP without using external DNS, HTTP servers, because the system doesn’t have a built-in mechanism to “know” its public IP.
