# Send requests to remote host (not on localhost)

**URL:** <https://community.postman.com/t/send-requests-to-remote-host-not-on-localhost/8602>\
**Category:** Help Hub\
**Created:** [October 26, 2019, 6:13pm UTC](https://community.postman.com/t/send-requests-to-remote-host-not-on-localhost/8602 "2019-10-26T18:13:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dom-designs](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/dom-designs/32/3104_2.png) [@dom-designs](https://community.postman.com/u/dom-designs)\
**Post date:** [October 26, 2019, 6:13pm UTC](https://community.postman.com/t/send-requests-to-remote-host-not-on-localhost/8602/1 "2019-10-26T18:13:38Z")

</div>

Is there a way to use postman for requests on a remote server?

It is a shared server and node is running on a port defined by the environment. I am hesitant to give too much irrelevant information. Please let me know if I should provide more details.

Thank you,

---

<div class="post-metadata">

**Author:** ![arlem](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arlem/32/3078_2.png) [@arlem](https://community.postman.com/u/arlem)\
**Post date:** [October 28, 2019, 9:02am UTC](https://community.postman.com/t/send-requests-to-remote-host-not-on-localhost/8602/2 "2019-10-28T09:02:27Z")

</div>

Welcome here @dom-designs 🙂

You can definitely use Postman to call a remote server, all you need to do is input the address of that server where you’ve put `localhost` until now, for example:  
 ![15](https://us1.discourse-cdn.com/getpostman/original/2X/f/f81ebdbb5b5e021fd5abf460a4f65b2cb060e8c3.png)

More information in the documentation here:

[https://learning.getpostman.com/docs/postman/sending\_api\_requests/requests](https://learning.getpostman.com/docs/postman/sending_api_requests/requests)

---

<div class="post-metadata">

**Author:** ![dom-designs](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/dom-designs/32/3104_2.png) [@dom-designs](https://community.postman.com/u/dom-designs)\
**Post date:** [November 9, 2019, 2:20am UTC](https://community.postman.com/t/send-requests-to-remote-host-not-on-localhost/8602/3 "2019-11-09T02:20:53Z")

</div>

Thanks for the help. I am just getting around to trying this. When I enter [https://react-book-manager.dominickdesigns.space/](https://react-book-manager.dominickdesigns.space/)

Postman returns the contents of index.html.

However, when I run localhost:5000/api/courses in postman it actually fetches data from the remote MySQL database on my shared server and it displays the contents of the database as expected.

---

<div class="post-metadata">

**Author:** ![arlem](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arlem/32/3078_2.png) [@arlem](https://community.postman.com/u/arlem)\
**Post date:** [November 11, 2019, 11:30am UTC](https://community.postman.com/t/send-requests-to-remote-host-not-on-localhost/8602/4 "2019-11-11T11:30:31Z")

</div>

I see that in your `config.js` you have your localhost address hardcoded:

```auto
export default {
    apiBaseUrl: 'https://localhost:5000/api',
};

```

That is probably the reason why you can reach your API on local but not online.
