Old 14th May 2022, 16:53   #1
Sadegh
Junior Member
 
Join Date: May 2022
Posts: 4
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
Sadegh is offline   Reply With Quote
Old 14th May 2022, 16:56   #2
HG2S
Junior Member
 
Join Date: Sep 2020
Posts: 31
You should publish your Nginx config file here so readers can proof it and offer suggestions as needed. -Thanks
HG2S is offline   Reply With Quote
Old 14th May 2022, 17:09   #3
Sadegh
Junior Member
 
Join Date: May 2022
Posts: 4
Quote:
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

Sadegh is offline   Reply With Quote
Old 15th May 2022, 02:28   #4
HG2S
Junior Member
 
Join Date: Sep 2020
Posts: 31
Are there Nginx configs for the streamer(s) domain(s)? For example, https://shoutcast.mydomain.com:8000?
HG2S is offline   Reply With Quote
Old 15th May 2022, 13:40   #5
Sadegh
Junior Member
 
Join Date: May 2022
Posts: 4
Quote:
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
Sadegh is offline   Reply With Quote
Old 16th May 2022, 19:54   #6
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,189
Quote:
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.
thinktink is offline   Reply With Quote
Old 21st May 2022, 15:36   #7
HG2S
Junior Member
 
Join Date: Sep 2020
Posts: 31
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.
HG2S is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump