# LoRaWAN port automatically set to zero value

**URL:** <https://www.thethingsnetwork.org/forum/t/lorawan-port-automatically-set-to-zero-value/7212>\
**Category:** LoRaWAN Discussions\
**Created:** [May 11, 2017, 12:48pm UTC](https://www.thethingsnetwork.org/forum/t/lorawan-port-automatically-set-to-zero-value/7212 "2017-05-11T12:48:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FValle](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/f/3bc359/32.png) [@FValle](https://www.thethingsnetwork.org/forum/u/FValle)\
**Post date:** [May 11, 2017, 12:48pm UTC](https://www.thethingsnetwork.org/forum/t/lorawan-port-automatically-set-to-zero-value/7212/1 "2017-05-11T12:48:45Z")

</div>

Hello,

I followed great tutorial for setting up own private handler: [https://www.thethingsnetwork.org/article/setting-up-a-private-handler-connected-to-the-public-community-network](https://www.thethingsnetwork.org/article/setting-up-a-private-handler-connected-to-the-public-community-network)  
Everything seems working good except one thing - for all messages the LoRaWAN port is set to 0. I tried different devices (different IDs) and tried to send messages with different port numbers, but it’s still the same. In TTN handler (from debug console) I can see incoming messages (uplink) and the right ports. But when I am trying to use mqtt subscribers to see what is inside (or use ttnctl subscribe command), all messages have the same port - port 0. But the payload is right.

Any idea what can be wrong? If I understand it well, it should be handler who is publishing messages into mqtt broker. And if I can able to see the right messages with right ports inside handler debug console, where can this change happen?

P.S.: Downlink has no problem, I receive message with the right port.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [May 11, 2017, 5:52pm UTC](https://www.thethingsnetwork.org/forum/t/lorawan-port-automatically-set-to-zero-value/7212/2 "2017-05-11T17:52:27Z")

</div>

> <https://github.com/TheThingsNetwork/ttn/commit/b0446b441c9218f0a793c701c7b7bcb702955832>

---

<div class="post-metadata">

**Author:** ![FValle](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/f/3bc359/32.png) [@FValle](https://www.thethingsnetwork.org/forum/u/FValle)\
**Post date:** [May 12, 2017, 8:26am UTC](https://www.thethingsnetwork.org/forum/t/lorawan-port-automatically-set-to-zero-value/7212/3 "2017-05-12T08:26:43Z")

</div>

Thanks, it was exactly what I was looking for! I didn’t notice that FPort was not converted from mac payload into uplink message.
