WAN IP address gateway

Hi all,

I am almost 100% sure that the WAN IP address of a gateway was in the uplink message the gateway puts through to the TTN Gateway console.

However, I can not find the WAN IP address of the gateways anymore in these uplinks.

This gateway is on Basic station.

Does someone knows how to retrieve the WAN IP address of a gateway?

Reason: I want to monitor the WAN IP address with UptimeRobot.com to know if internet of the remote site is UP or DOWN

Many thanx

Marc

I am almost 100% sure I’ve never seen it.

Do the IP addresses of the sites change that often that you need to determine them dynamically? Most wired IP connections should have fairly stable IP addresses and for mobile connections you’ll only see the providers NAT gateway which should have a decent uptime.

It’s not in the uplink messages, but it is in the periodic gateway status messages.

The live data view of the gateway console shows it, in the ‘receive gateway status’ message, field “data/ip”.

You can also find it in the gateway event stream, field “last_status/ip” and field “gateway_remote_address”.

EDIT: and if the thing you really want is to know if the gateway is working or not, you should also have a look at the packet broker. It can provide you with a JSON summary of recent status, for example: https://mapper.packetbroker.net/api/v2/gateways/netID=000013,tenantID=ttn,id=bertrik-ttig-2
There is an “online” field (true/false).

Hmmm, only for certain gateways. It looks to be present in status messages for the Semtech packet forwarder, but is missing for gateways using the ttn-gateway-connector protocol. (The Kickstarter gateways)

Almost all of my gateways are on Basic Station now and as far as I can see, there are no periodic gateway updates anymore. Is that correct?

I will check mapper.packetborker.net

Hi @kersing

It was in the gateway metrics as Bertrik answered. Now I remember

No, almost all ISP’s in the Netherlands give the customers a dynamic IP address but it will remain to the customer for a long time. Even when a router restarts, It will get back the same IP address. Some time it will change as the ISP makes an update in their network.

And it would be easy to lookup the IP address in the info form the gateway.

Hi Jac,
this is my kickstarter hateway:
https://mapper.packetbroker.net/api/v2/gateways/netID=000013,tenantID=ttn,id=ttn0478-gw-011
Marc

@bertrik

yep, there it is. In the gateway update. But only on packet forwarder gateways and not basic station gateways ;-(

image

My TTIG / MiniHub uses the “ws” protocol, and has the field “gateway_remote_address” available.