# Communication between 1 Xbee Wifi S6B and a TCP server running on PC.

**URL:** <https://forums.digi.com/t/communication-between-1-xbee-wifi-s6b-and-a-tcp-server-running-on-pc/14144>\
**Category:** XBee - WiFi\
**Tags:** tcp-sockets, wifi, xbee-wifi, xbee\
**Created:** [January 7, 2015, 9:23am UTC](https://forums.digi.com/t/communication-between-1-xbee-wifi-s6b-and-a-tcp-server-running-on-pc/14144 "2015-01-07T09:23:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauravptalukdar89](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@gauravptalukdar89](https://forums.digi.com/u/gauravptalukdar89)\
**Post date:** [January 7, 2015, 9:23am UTC](https://forums.digi.com/t/communication-between-1-xbee-wifi-s6b-and-a-tcp-server-running-on-pc/14144/1 "2015-01-07T09:23:06Z")

</div>

Hello everyone,

I bought few Xbee S6B module. Configured two of them in XCTU with the correct destination address.

Use cases:

1. Taking 2 xbees, works fine, setting the source IP of one as the destination IP of the other.

2. Now if I take 1 Xbee, set it’s destination address as that of my PC and run a simple TCP server like netcat in Linux or HW-Hercules in windows, I am not able to establish any communication.

NB: Connecting and listening port is 5000, Infrastructure (WPA2 personal) and both devices on the same network, IP Protocol: TCP, Transparent mode: Just sending a “helloworld” message periodically. Configurations done in X-CTU.

Can anyone please help me to demystify this? I have to wok on a http server later but first I wanted to put my basics straight. Is there any sniffer tool to check data transmitted from the xbee.?

Thanks,  
Gaurav

---

<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:** [January 7, 2015, 3:58pm UTC](https://forums.digi.com/t/communication-between-1-xbee-wifi-s6b-and-a-tcp-server-running-on-pc/14144/2 "2015-01-07T15:58:39Z")

</div>

Check the Destination and Source port numbers on the XBee. They need to be set to the ports you are listening to on your Server for it to work.

---

<div class="post-metadata">

**Author:** ![micky2406](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@micky2406](https://forums.digi.com/u/micky2406)\
**Post date:** [September 16, 2015, 8:10am UTC](https://forums.digi.com/t/communication-between-1-xbee-wifi-s6b-and-a-tcp-server-running-on-pc/14144/3 "2015-09-16T08:10:38Z")

</div>

are you resolve the problem? same problem i am facing now i am sending simple unix time request to local server through XBee module … but its not working
