# Map two different interfaces to FreeRTOS+TCP stack

**URL:** <https://forums.freertos.org/t/map-two-different-interfaces-to-freertos-tcp-stack/14033>\
**Category:** Libraries\
**Created:** [December 8, 2021, 9:32am UTC](https://forums.freertos.org/t/map-two-different-interfaces-to-freertos-tcp-stack/14033 "2021-12-08T09:32:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AzerAhai](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AzerAhai](https://forums.freertos.org/u/AzerAhai)\
**Post date:** [December 8, 2021, 9:32am UTC](https://forums.freertos.org/t/map-two-different-interfaces-to-freertos-tcp-stack/14033/1 "2021-12-08T09:32:13Z")

</div>

Hello,

I am working with a STM32F4 board and I would like to use FreeRTOS+TCP stack with both ETH\_MAC and USB\_OTG\_FS.  
From what I have seen on the web, there is no official demo of FreeRTOS+TCP with USB, but is it possible to use the stack with these two interfaces ?

Thank you,  
Azer

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [December 8, 2021, 5:02pm UTC](https://forums.freertos.org/t/map-two-different-interfaces-to-freertos-tcp-stack/14033/2 "2021-12-08T17:02:27Z")

</div>

You want to use the USB OTG peripheral as an Ethernet port? If you have a driver for that then the [multi-interface version of FreeRTOS+TCP](https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/freertostcp-multiple-interfaces.html) (not fully released yet) may help.

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [December 9, 2021, 2:21am UTC](https://forums.freertos.org/t/map-two-different-interfaces-to-freertos-tcp-stack/14033/3 "2021-12-09T02:21:43Z")

</div>

You can also find the URL of the IPv6/multi Github branch on the page mentioned by @rtel.  
Unfortunately I don’t have experience with using USB as an Ethernet port, at least not on STM32.  
If you have any questions you can ask them here.
