# Node-Red connection to another device, from a server

**URL:** <https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249>\
**Category:** General\
**Created:** [23 September 2020 20:04 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249 "2020-09-23T20:04:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrews150](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@andrews150](https://discourse.nodered.org/u/andrews150)\
**Post date:** [23 September 2020 20:04 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/1 "2020-09-23T20:04:22Z")

</div>

Hello all,

I have been working with a server on a desktop and have connected a device that is running Node-Red (Advantech ADAM 6750) and when I go to the Chrome web browser and type in the url "(ADAM ip):1880/hello" it pulls up the response I had set up, but when I use the server that was set up on the desktop and try to access the same url I do not get anything as a response, the server uses c# and I have tried the following code to access the Node-Red HTTP request:

WebClient client = new WebClient();  
client.Credentials = new NetworkCredential ("user","pass");  
string value = client.DownloadString("https://(ADAM ip):1880/hello");

I get no response what so ever, (I am not using HttpClient becasue the server doesnt offer that library).

Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 September 2020 20:21 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/2 "2020-09-23T20:21:36Z")

</div>

Are you using https:// when you do it in the browser or just http? If not https then use http in your client s/w.

---

<div class="post-metadata">

**Author:** ![andrews150](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@andrews150](https://discourse.nodered.org/u/andrews150)\
**Post date:** [23 September 2020 21:12 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/3 "2020-09-23T21:12:43Z")

</div>

I have tried it with both, but i am currently using https

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 September 2020 21:29 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/4 "2020-09-23T21:29:03Z")

</div>

> [@andrews150](#):
>
> WebClient client = new WebClient();  
> client.Credentials = new NetworkCredential ("user","pass");  
> string value = client.DownloadString("https://(ADAM ip):1880/hello");

Where are you putting that code? Where is the `WebClient()` function coming from?

---

<div class="post-metadata">

**Author:** ![andrews150](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@andrews150](https://discourse.nodered.org/u/andrews150)\
**Post date:** [23 September 2020 21:57 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/5 "2020-09-23T21:57:27Z")

</div>

It is coming from a software program on the desktop that runs a limited version of c# hence the reason i dont have access to HttpClient

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 September 2020 07:47 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/6 "2020-09-24T07:47:41Z")

</div>

1. Does it work in your c# app if you use "[https://www.google.com](https://www.google.com)" for example?

2. Also does it work for ip:1880 without the /hello?

3. Does https work in the browser?

4. Are you running the browser on the same machine that the node-red server is running on?

---

<div class="post-metadata">

**Author:** ![andrews150](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@andrews150](https://discourse.nodered.org/u/andrews150)\
**Post date:** [24 September 2020 12:56 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/7 "2020-09-24T12:56:51Z")

</div>

1. Http and Https both worked in the browser

2. Everything is being run on the same computer, except the Adam module which is on the same network.

3. 
  - 
    1. I can try next time im at my computer and respond to those then - most likely monday

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 November 2020 12:57 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249/8 "2020-11-23T12:57:00Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
