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:
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!
Nwaters
source share