# Bind error to a different ip address

**URL:** <https://discuss.px4.io/t/bind-error-to-a-different-ip-address/11190>\
**Category:** MAVSDK\
**Created:** [May 30, 2019, 8:14am UTC](https://discuss.px4.io/t/bind-error-to-a-different-ip-address/11190 "2019-05-30T08:14:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elBarto](https://discuss.px4.io/user_avatar/discuss.px4.io/elbarto/32/2800_2.png) [@elBarto](https://discuss.px4.io/u/elBarto)\
**Post date:** [May 30, 2019, 8:14am UTC](https://discuss.px4.io/t/bind-error-to-a-different-ip-address/11190/1 "2019-05-30T08:14:30Z")

</div>

Hi,  
I am running my Dronecode-based program on an ODROID-XU4 board and I would like to test it using an instance of the jMavsim simulator running on my desktop computer.  
I noticed that, when I try to connect to an ip address different from localhost (i.e. `./droneManager udp://192.168.0.3:14540`), the library reports the following bind error:

> [09:52:00|Error] bind error: Cannot assign requested address (udp\_connection.cpp:82)

Has anybody experienced the same issue? In accordance with the Droncode’s reference guide it should be possible to connect to a simulator running on another pc.

Thank you!

---

<div class="post-metadata">

**Author:** ![RagnarRainMaker](https://discuss.px4.io/user_avatar/discuss.px4.io/ragnarrainmaker/32/3555_2.png) [@RagnarRainMaker](https://discuss.px4.io/u/RagnarRainMaker)\
**Post date:** [August 17, 2019, 6:13pm UTC](https://discuss.px4.io/t/bind-error-to-a-different-ip-address/11190/2 "2019-08-17T18:13:54Z")

</div>

Here’s an answer on StackOverflow regarding SO\_REUSEADDR, which might help.

> <https://stackoverflow.com/questions/7640619/cannot-assign-requested-address-possible-causes>

---

<div class="post-metadata">

**Author:** ![elBarto](https://discuss.px4.io/user_avatar/discuss.px4.io/elbarto/32/2800_2.png) [@elBarto](https://discuss.px4.io/u/elBarto)\
**Post date:** [August 26, 2019, 7:03am UTC](https://discuss.px4.io/t/bind-error-to-a-different-ip-address/11190/3 "2019-08-26T07:03:31Z")

</div>

Thank you @RagnarRainMaker. In the meantime, I solved the problem by making my own udp proxy. 😉
