Announcement

Collapse
No announcement yet.

need help in running shoutcast

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • need help in running shoutcast

    Hi,
    I've installed Nginx on my ubuntu server with many server blocks.
    Then I installed Shoutcast.
    Now I run Shoutcast with this command:
    ./sc_serv &
    it will run without error.
    but when I open this address :
    HTTP://myserveripaddress:8000
    it shows this page:
    The connection has timed out
    Please tell me what I should do to solve this problem.
    Thanks

  • #2
    You should publish your Nginx config file here so readers can proof it and offer suggestions as needed. -Thanks

    Comment


    • #3
      Originally Posted by HG2S View Post
      You should publish your Nginx config file here so readers can proof it and offer suggestions as needed. -Thanks
      Thanks for your quick answer.
      I've created a config file for each server block.
      this is my nginx.conf contents:

      code:
      http {

      ##
      # Basic Settings
      ##

      sendfile on;
      tcp_nopush on;
      tcp_nodelay on;
      keepalive_timeout 65;
      types_hash_max_size 2048;
      # server_tokens off;

      server_names_hash_bucket_size 64;
      # server_name_in_redirect off;

      #let user upload files
      client_max_body_size 200M;

      include nginxaddress/mime.types;
      default_type application/octet-stream;

      ##
      # SSL Settings
      ##

      ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
      ssl_prefer_server_ciphers on;

      ##
      # Logging Settings
      ##

      access_log nginxaddress/access.log;
      error_log nginxaddress/error.log;

      ##
      # Gzip Settings
      ##

      gzip on;

      ##
      # Virtual Host Configs
      ##

      include nginxaddress/*.conf;
      include nginxaddress/sites-enabled/*;
      }

      my sc_serv.conf:
      code:

      adminpassword=mypassword
      password=mysecondpassword
      requirestreamconfigs=1
      streamadminpassword_1=mythirdpassword
      streamid_1=1
      streampassword_1=myfourthpassword
      streampath_1=/
      logfile=logs/sc_serv.log
      w3clog=logs/sc_w3c.log
      banfile=control/sc_serv.ban
      ripfile=control/sc_serv.rip

      Comment


      • #4
        Are there Nginx configs for the streamer(s) domain(s)? For example, https://shoutcast.mydomain.com:8000?

        Comment


        • #5
          Originally Posted by HG2S View Post
          Are there Nginx configs for the streamer(s) domain(s)? For example, https://shoutcast.mydomain.com:8000?
          I've changed the streampath_1 in sc_serv.conf:
          code:
          streampath_1=localhost
          Then I've created a server block and this is the server block config file contents:
          code:
          server {
          listen myipaddress:80;

          root serverblockfolder/html;

          index index.html index.htm index.nginx-debian.html;
          server_name mydomain.com www.mydomain.com;

          location / {
          try_files $uri $uri/ =404;
          }

          location /stream {
          proxy_pass http://myipaddress:8000;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header X-Forwarded-Host $host;
          proxy_set_header X-Forwarded-Port $server_port;
          proxy_set_header X-Forwarded-Protocol $scheme;
          access_log logfolder/stream.log;
          }
          }

          Now when I open this address:
          mydomain.com/stream

          I get this error in console(in error "Unknown_IP_was_here" is an IP that I don't know. it's not my adsl IP address or my server IP address):
          code:
          [DST Unknown_IP_was_here:45702 (xff) sid=1] HTTP client connection rejected. Stream not available as there is no source connected. Agent: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36'
          Please tell me what's wrong and how can I access the Shoutcast admin area.
          Thanks

          Comment


          • #6
            Originally Posted by Sadegh View Post
            ...

            I get this error in console(in error "Unknown_IP_was_here" is an IP that I don't know. it's not my adsl IP address or my server IP address):
            code:
            [DST Unknown_IP_was_here:45702 (xff) sid=1] HTTP client connection rejected. Stream not available as there is no source connected. Agent: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36'
            Please tell me what's wrong and how can I access the Shoutcast admin area.
            Thanks
            Connect a source directly to the DNAS. To access the SHOUTcast DNAS admin area I would recommend connecting directly to the DNAS with the proper port instead of using the NGIX web proxy unless you have blocked direct connections to the DNAS.
            | Opus Audio Codec plugins 2.0 | Embedded Album Art | DiskWrite |
            | Save your playlist first! | Live voice-over | X-Fade 2.5 |
            | AterKast (Source DSP) | More of my stuff... |

            Comment


            • #7
              I think I would backup a step and get the basic streamer running by itself on port 8000 (default) with no reverse proxy.

              Once that operates as expected add the Nginx reverse proxy and work out its configuration for the server.

              Finally, add the SSL to Nginx and test.

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎