# Can't receive udp packets when initially connecting XBee wifi

**URL:** <https://forums.digi.com/t/cant-receive-udp-packets-when-initially-connecting-xbee-wifi/14685>\
**Category:** XBee - WiFi\
**Tags:** udp, xbee-wifi\
**Created:** [April 10, 2015, 4:20pm UTC](https://forums.digi.com/t/cant-receive-udp-packets-when-initially-connecting-xbee-wifi/14685 "2015-04-10T16:20:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tking42](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tking42](https://forums.digi.com/u/tking42)\
**Post date:** [April 10, 2015, 4:20pm UTC](https://forums.digi.com/t/cant-receive-udp-packets-when-initially-connecting-xbee-wifi/14685/1 "2015-04-10T16:20:25Z")

</div>

I’m trying to communicate with the XBee Wifi from my computer using an ad-hoc network with udp. The XBee settings are:  
Network Type - IBSS Creator  
Infrastructure mode - Soft AP mode  
SSID - XBee Wifi  
IP Protocol - UDP  
DNS Address - 0.0.0.0  
Destination IP Address - 255.255.255.255  
Source Port - 2616  
Destination Port - 2616  
IP Address of gateway - 192.168.1.1  
IP Address Mask - 255.255.255.0  
Moduel IP Address - 192.168.1.10  
API Enable - Transparent mode  
Everything else is the default.

Initially, I connect the XBee to the computer. From my computer, I am able to connect to the ad-hoc network (XBee Wifi). I then send udp packets from the computer to the XBee and from the XBee to the computer; however, neither side receives the packets sent from the other side.

I then go to the XBee settings in XCTU, set the protocol to TCP and write it to the XBee; I then immediately set the protocol back to UDP and write it to the XBee. I then send udp packets, and I am now able to receive packets on both sides. Unpowering the repowering the XBee results in me not being able to receive udp packets.

My firmware version is 2024.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [April 21, 2015, 11:16am UTC](https://forums.digi.com/t/cant-receive-udp-packets-when-initially-connecting-xbee-wifi/14685/2 "2015-04-21T11:16:27Z")

</div>

What happens if you connect your XBee WIFI module to an access point via UDP and send UDP packets? Do you see the same issue?

---

<div class="post-metadata">

**Author:** ![prst](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@prst](https://forums.digi.com/u/prst)\
**Post date:** [September 1, 2016, 4:18pm UTC](https://forums.digi.com/t/cant-receive-udp-packets-when-initially-connecting-xbee-wifi/14685/3 "2016-09-01T16:18:25Z")

</div>

Any updates? I have the same problem.

---

<div class="post-metadata">

**Author:** ![ckellar33](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@ckellar33](https://forums.digi.com/u/ckellar33)\
**Post date:** [January 17, 2017, 8:41am UTC](https://forums.digi.com/t/cant-receive-udp-packets-when-initially-connecting-xbee-wifi/14685/4 "2017-01-17T08:41:49Z")

</div>

I am also seeing the same issue on the latest firmware. Any solutions?
