# XBee ZigBee gateway error "socket.error: \[Errno 95\] Operation not supported"

**URL:** <https://forums.digi.com/t/xbee-zigbee-gateway-error-socket-error-errno-95-operation-not-supported/15888>\
**Category:** Python\
**Tags:** xbee-gateway, python, xbee, zigbee\
**Created:** [December 4, 2015, 10:06am UTC](https://forums.digi.com/t/xbee-zigbee-gateway-error-socket-error-errno-95-operation-not-supported/15888 "2015-12-04T10:06:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![or-xbee-user](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@or-xbee-user](https://forums.digi.com/u/or-xbee-user)\
**Post date:** [December 4, 2015, 10:06am UTC](https://forums.digi.com/t/xbee-zigbee-gateway-error-socket-error-errno-95-operation-not-supported/15888/1 "2015-12-04T10:06:11Z")

</div>

I have uploaded the example hello world script to my XBee ZigBee gateway. There’s another zigbee device nearby that I’m trying to receive data from, but the script is already failing on the bind step with the following error:

socket.error: [Errno 95] Operation not supported

---

<div class="post-metadata">

**Author:** ![NicholasWilson](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@NicholasWilson](https://forums.digi.com/u/NicholasWilson)\
**Post date:** [December 7, 2015, 3:42am UTC](https://forums.digi.com/t/xbee-zigbee-gateway-error-socket-error-errno-95-operation-not-supported/15888/2 "2015-12-07T03:42:35Z")

</div>

Are you sure you are not running any other python programs?

Did you buy this as part of the cloud kit? If so have you disabled the xbgw\_main.py?

---

<div class="post-metadata">

**Author:** ![or-xbee-user](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@or-xbee-user](https://forums.digi.com/u/or-xbee-user)\
**Post date:** [December 7, 2015, 4:51pm UTC](https://forums.digi.com/t/xbee-zigbee-gateway-error-socket-error-errno-95-operation-not-supported/15888/3 "2015-12-07T16:51:17Z")

</div>

You’re quite right, I’ve disabled the xbgw\_main.py and no longer have the issue. Is there any way of making sure via the script that it can gain an exclusive socket connection?

---

<div class="post-metadata">

**Author:** ![starfish](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@starfish](https://forums.digi.com/u/starfish)\
**Post date:** [December 14, 2020, 9:04am UTC](https://forums.digi.com/t/xbee-zigbee-gateway-error-socket-error-errno-95-operation-not-supported/15888/4 "2020-12-14T09:04:23Z")

</div>

The tutorial bind commands seem to have static values that do not work in user environments.

Make sure you identify your endpoint, profile\_id, and cluster\_id and replace those values in ‘sd.bind(…)’ or whatever the command happens to be.
