# Native script works on local, but not on remote server

**URL:** https://discuss.elastic.co/t/native-script-works-on-local-but-not-on-remote-server/39487
**Category:** Elasticsearch
**Created:** [January 18, 2016, 10:25pm UTC](https://discuss.elastic.co/t/native-script-works-on-local-but-not-on-remote-server/39487 "2016-01-18T22:25:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cuongvt101](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@cuongvt101](https://discuss.elastic.co/u/cuongvt101)
#### Post date: [January 18, 2016, 10:25pm UTC](https://discuss.elastic.co/t/native-script-works-on-local-but-not-on-remote-server/39487/1 "2016-01-18T22:25:18Z")

</div>

Hi all, I managed to create and install a native script, and it works perfectly on my localhost. However, when I transfer the same code to a remote server, while it built and installed just fine, when I ran query, it kept saying that `Native script [xxx] not found`. I'm wondering if I need to config Elastic on the remote server in someway to make it work? Can someone provide hit. Thanks

Note: I already put `"lang": "native"` in my query.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:23pm UTC](https://discuss.elastic.co/t/native-script-works-on-local-but-not-on-remote-server/39487/2 "2017-07-05T23:23:38Z")

</div>


