Working with loopback (127.0.0.1)

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Working with loopback (127.0.0.1)

Postby kolban » Tue Nov 22, 2016 4:10 am

I am working with some open source code that is making use of the loopback interface ... IP address 127.0.0.1. I ran into a problem and created an issue here:

https://github.com/espressif/esp-idf/issues/114

To which a fellow community member came back and pointed the issue at the notion of the LWIP and Loopback enablement. This opened up a whole question area ...

Q: Is loopback processing supported with an ESP32? For example, can I make a network connection from my ESP32 to a socket endpoint that is ALSO on the same ESP32 at address 127.0.0.1?

Q: If loopback processing is supported, is it enabled by default? We seem to be finding traces to discussion on having to set flags at LWIP compile time. See: http://www.nongnu.org/lwip/2_0_0/group_ ... _loop.html

Q: ... and finally ... if loopback processing is supported but not enabled by default, do we have a recipe to actually enable it?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Working with loopback (127.0.0.1)

Postby ESP_igrr » Tue Nov 22, 2016 4:59 am

We have a patch for loopback support sitting in mDNS support branch. I'll see if we can separate it and merge into master.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Working with loopback (127.0.0.1)

Postby WiFive » Tue Nov 22, 2016 6:38 am

ESP_igrr wrote:We have a patch for loopback support sitting in mDNS support branch. I'll see if we can separate it and merge into master.
mDNS sounds good, and throw in uPnP and NBNS while you're at it :)

Who is online

Users browsing this forum: No registered users and 253 guests