RStudio Server on CentOS 7 x84_64

Hi @jonathan,

VPN was not an issue as I am logged without it and using the same network where the server is.

Finally, I solved it and I am not sure which of the following steps helped:

  1. Uninstalled apache from system. I has installed it today just to check if web server is accessible or not.
  2. Edited /etc/rstudio/rserver.conf as:
    www-port=8787
    www-address=<server-ip>
    
  3. Executed sudo rstudio-server restart
  4. RStudio Server accessible via browser :blush:

To test further, removed server IP from /etc/rstudio/rserver.conf and rebooted the system. RStudio Server is still accessible with following system settings:

  1. ufw status is inactive.

  2. sudo netstat -nat | grep LISTEN output:

    tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:8787            0.0.0.0:*               LISTEN
    tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
    tcp6       0      0 :::111                  :::*                    LISTEN
    tcp6       0      0 :::22                   :::*                    LISTEN
    tcp6       0      0 ::1:631                 :::*                    LISTEN
    tcp6       0      0 ::1:25                  :::*                    LISTEN
    
  3. sudo firewall-cmd --zone=public --list-all output:

    public (active)
      target: default
      icmp-block-inversion: no
      interfaces: enp4s0f1
      sources:
      services: dhcpv6-client ssh
      ports: 8787/tcp 8787/udp
      protocols:
      masquerade: no
      forward-ports:
      source-ports:
      icmp-blocks:
      rich rules:
    

I don't know whether apache was the reason, but I had configured apache today itself. Also, I am not on VPN, but I think it should work out when I am on it. Will give it a try and update here.


Update 1

Hi @edgararuiz, @nick, @jonathan:

Above setup worked with VPN too. I am still clueless what made it work, but it's working. :grinning:

Thanks.

1 Like