# OpenRMF Web (#605)

**URL:** <https://discourse.openrobotics.org/t/openrmf-web-605/44782>\
**Category:** Open-RMF General\
**Tags:** rmf-github-discuss\
**Created:** [September 13, 2023, 9:49am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782 "2023-09-13T09:49:46Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 13, 2023, 9:49am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/1 "2023-09-13T09:49:46Z")

</div>

Posted by @registaz:

Hi all, I am trying to access the openRMF web with another PC connected to the host of the server, but I am not able to see any map / fleet details. Is there a need for a user login to be able to see these details on another PC ? if so, what is the port number to access the login page? Thanks!

> **Chosen answer**
>
> Answer chosen by @registaz at 2023-09-22T01:52:44Z.  
> Answered by @registaz:
> 
> Hi @aaronchongth, resolved on my side. There was another config file that uses 127.0.0.1 IP that needs to be changed.

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 14, 2023, 1:57am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/2 "2023-09-14T01:57:31Z")

</div>

Posted by @aaronchongth:

Hello @registaz! May I ask what your setup is like? (OS, RMF deployment, etc). When you mean host of the server, do you mean the machine running the API server? I assume the dashboard looks empty without any single piece of information from the server?

The port is `8000`, so you should follow the steps here [https://github.com/open-rmf/rmf-web/tree/main/packages/dashboard#environment-variables](https://github.com/open-rmf/rmf-web/tree/main/packages/dashboard#environment-variables), to direct the dashboard to the api-server.

One sanity check, if you build and run the dashboard on default configurations on the same machine as the API server, it should use local host, and they should be connected.

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 14, 2023, 6:23am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/3 "2023-09-14T06:23:27Z")

</div>

Posted by @registaz:

HI @aaronchongth, so my setup right now is that I have 1 PC running the API Server, this PC is able to view all information on the dashboard without a problem. The problem is when the 2 PC opens up the website, http://[(IP of PC1):3000]/, the dashboard shown is empty with no information from the server.

By accessing API server IP with port 8000, browser shows that site cant be reached.

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 2:43am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/4 "2023-09-19T02:43:13Z")

</div>

Posted by @registaz:

How should I change the environment values in this case? Is there a file specifically for this configuration?

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 4:33am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/5 "2023-09-19T04:33:37Z")

</div>

Posted by @aaronchongth:

Since the dashboard is shown, but not all the information from the API server, I would assume it has something to do with your network configuration or a firewall. Could you check by disabling any firewalls or network security you may be running?

Depending on your network setup, you may even need to configure your router to handle internal LAN forwarding

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 5:23am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/6 "2023-09-19T05:23:47Z")

</div>

Posted by @registaz:

Hi @aaronchongth , dashboard is shown but not the maps or other data available. firewalls are all disable. I have been using a hotspot to try to get all of these working

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 5:54am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/7 "2023-09-19T05:54:03Z")

</div>

Posted by @registaz:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/ros/original/3X/a/7/a707379b0051d95e0a7a37f9f07a8cd8f6814385.png)

This is what I am getting on my other device within the same network connection

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 6:08am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/8 "2023-09-19T06:08:06Z")

</div>

Posted by @aaronchongth:

I think I have an idea where the problem lies now, check out [https://github.com/open-rmf/rmf-web/tree/main/packages/dashboard#environment-variables](https://github.com/open-rmf/rmf-web/tree/main/packages/dashboard#environment-variables) on the environment variables needed when building the dashboard package, this points all build frontends to the server.

These are some example default values, [rmf-web/packages/dashboard/.env at c885e3df14c4377273e6abbdffcfde106863c534 · open-rmf/rmf-web · GitHub](https://github.com/open-rmf/rmf-web/blob/c885e3df14c4377273e6abbdffcfde106863c534/packages/dashboard/.env#L4), and hence when you run the frontend on your other device, it is still trying to access `localhost:8000`, while it should have been `SERVER_MACHINE_IP:8000`.

What you’ll need to do, is to set up the environment variables to be your server machine’s IP, before building the dashboard package, and serving it. After these steps, the dashboard running on the server’s machine will look for `SERVER_MACHINE_IP:8000`, and running additional frontends on other machines in the same network will also be working with `SERVER_MACHINE_IP:8000`.

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 6:08am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/9 "2023-09-19T06:08:51Z")

</div>

Posted by @aaronchongth:

This is how it looks like in our example deployment package, [https://github.com/open-rmf/rmf\_deployment\_template/blob/main/rmf-web/rmf-web-dashboard.Dockerfile#L11-L17](https://github.com/open-rmf/rmf_deployment_template/blob/main/rmf-web/rmf-web-dashboard.Dockerfile#L11-L17) where we use the absolute URL of the server, instead of something relative like `localhost`

* * *

Edited by @aaronchongth at 2023-09-19T06:09:20Z

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 6:26am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/10 "2023-09-19T06:26:08Z")

</div>

Posted by @registaz:

Thank you for your reply @aaronchongth! Let me just be sure of my understanding of these variables that  
REACT\_APP\_RMF\_SERVER= “Should be the IP/absolute url of the API SERVER”

What abour the REACT\_APP\_TRAJECTORY\_SERVER ?

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 6:28am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/11 "2023-09-19T06:28:48Z")

</div>

Posted by @registaz:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/ros/original/3X/8/6/861f05aae8020d70982dc1506dab8c72185efe33.png)

I’ve changed the address but im still getting connection refused.

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 6:45am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/12 "2023-09-19T06:45:07Z")

</div>

Posted by @aaronchongth:

`REACT_APP_TRAJECTORY_SERVER` targets the trajectory server of open-rmf where it uses the port 8006 by default.

We can look into it a little more if you can provide some more information about your system setup, are both machines running ubuntu?

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 7:38am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/13 "2023-09-19T07:38:10Z")

</div>

Posted by @registaz:

The machine hosting the API server is running on Ubuntu 20.04, no issues viewing the web on this machine.

Other machine is running on windows,

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 19, 2023, 8:05am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/14 "2023-09-19T08:05:24Z")

</div>

Posted by @registaz:

Do I need any form of authentication to access the dashboard from another PC ?

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [September 22, 2023, 1:52am UTC](https://discourse.openrobotics.org/t/openrmf-web-605/44782/15 "2023-09-22T01:52:42Z")

</div>

Posted by @registaz:

Hi @aaronchongth, resolved on my side. There was another config file that uses 127.0.0.1 IP that needs to be changed.

* * *

**This is the chosen answer.**
