# Alexa-home - alexa\_ip is undefined

**URL:** https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786
**Category:** General
**Created:** [7 July 2022 05:12 UTC](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786 "2022-07-07T05:12:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sylvan](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Sylvan](https://discourse.nodered.org/u/Sylvan)
#### Post date: [7 July 2022 05:12 UTC](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786/1 "2022-07-07T05:12:49Z")

</div>

According to the documentation, the [alexa-home](https://flows.nodered.org/node/node-red-contrib-alexa-home) node sends the IP address of the Echo device that initialized the message.  
This can be found under `msg.alexa_ip`.

The problem in my case is that I never get an IP.  
The value is always "undefined" - in any case, no matter if the message is triggered by a routine or directly by an echo device.

I use the latest version [2.0.0](https://github.com/mabunixda/node-red-contrib-alexa-home/tree/v2.0.0) of the node, but also with earlier versions I had no success.

Is there any special constellation that is necessary to fill the IP address correctly?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [7 July 2022 09:44 UTC](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786/2 "2022-07-07T09:44:49Z")

</div>

- What generation Echo are you using?
- What version of NR and Node.js (you can get this from the start up log)
- Which of the nodes are you using. the 'alexa - home' or the alexa - home - controler'?
- what settings are you using in the node's?
- Try adding a `catch` node connected to a `debug` node (set to display the complete msg object) in - the tab with the alexa node. Does anything show up in the debug log?
- Are there any messages in the Node-red log?

---

<div class="post-metadata">

### Author: ![Sylvan](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Sylvan](https://discourse.nodered.org/u/Sylvan)
#### Post date: [7 July 2022 11:06 UTC](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786/3 "2022-07-07T11:06:02Z")

</div>

> [@zenofmud](#):
>
> What generation Echo are you using?

Echo Dot 2, Echo Dot 3, Echo Dot 4, Echo Plus 2, Echo 2, Echo 3, Echo 4

> [@zenofmud](#):
>
> What version of NR and Node.js

Node-RED version: `v2.2.2`  
Node.js version: `v14.18.2`  
it's the official docker image `nodered/node-red:latest` which i start with the following `docker-compose.yml`:

```yaml
version: '3.5'

services:
	node-red:
		image: nodered/node-red:latest
		user: root
		network_mode: "host"
		expose:
			- "80"
			- "1880"
			- "60000"
			- "3456"
			- "3457"
			- "4200"
		cap_add:
			- NET_ADMIN
		restart: unless-stopped
		volumes:
			- "./data:/data

```

> [@zenofmud](#):
>
> Which of the nodes are you using. the 'alexa - home' or the alexa - home - controler'?

both - the controller for basic settings and the other ones for interaction with Alexa.  
Everything has also been working as it should for years - only the IP is not provided.

> [@zenofmud](#):
>
> what settings are you using in the node's?

alexa-home-controller: Port = 80, MaxItems = 100, no "_use node as webserver_"  
alexa-home: the device name and all the 3 types (mostly dimming)  
As I said - everything works fine except for the IP.

> [@zenofmud](#):
>
> Try adding a `catch` node connected to a `debug` node (set to display the complete msg object) in - the tab with the alexa node. Does anything show up in the debug log?

Nothing is printed - no error is thrown.

> [@zenofmud](#):
>
> Are there any messages in the Node-red log?

Yes, of course - but none that I would somehow associate with the alexa-home IP issue.  
The debug log on the web ui is empty.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [7 July 2022 11:13 UTC](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786/4 "2022-07-07T11:13:36Z")

</div>

Ok I'm ot going to be abe t help since I do not use docker and have no experience with it. Hopefully soeone else will be able to give you an idea or you could open an issue with the `node-red-contrib-alexa-home`s author on [it's GitHub issuespage](https://github.com/mabunixda/node-red-contrib-alexa-home/issues)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [5 September 2022 11:14 UTC](https://discourse.nodered.org/t/alexa-home-alexa-ip-is-undefined/64786/5 "2022-09-05T11:14:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
