LAN Hosting Brilliant Applications Launched from the Command Line

I am trying to host a Shiny application on a computer connected to a local network. In the directory where my application is located, I have server.R, ui.R and launcher.R scripts. The launcher.R file looks like this:

#!/usr/bin/Rscript library(shiny) setwd("~/path/to/shinyApp/") shiny::runApp(host="0.0.0.0",port=4414) 

When I launch it through RStudio, the application starts up, behaves normally and can be accessed by other machines through the LAN by going to the browser at 987.65.43.21:4414. When I launch the application with launch.browser=T , the address reads 127.0.0.1:4414.

I want to be able to launch a launcher and host an application without starting RStudio. When I try to run the startup code using the command line, the application gives normal messages

 Loading required package: methods Listening on http://0.0.0.0:4414 

but I can’t access the application through a LAN browser. If I go to 127.0.0.1:4414 on the host computer, I can access it, but not through the IP address of the device on another computer, as I could when starting RStudio.

Does anyone have an idea of ​​what might happen? Thanks!

+1
source share
1 answer

Install the brilliant server from here , this will allow you to access your brilliant applications from your local network. Just put your shiny files in /srv/shiny-server/myApp and you can access them through xx.xx.xx.xx:3838/myApp/

+1
source

All Articles