Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can't connect to Icecast streams with specific ports in URL (9443 etc) #2130

Answered by pschatzmann
z-l-p asked this question in Q&A
Discussion options

Hi, and many thanks for the library!
When using the example code for URLstream, ICYstream, and MultiDecoder, I can't seem to connect to Icecast streams that require specific ports. (All http streams I've tried play fine, as do https URLs with no port in the URL.)
These 2 URLS from different servers give the same pattern of result:

What should I try next?

Log below:

[I] HttpRequest.h : 240 - process connecting to host locus.creacast.com port 9443
[I] HttpRequest.h : 367 - is connected true with timeout 60000
[I] HttpRequest.h : 251 - Free heap: 250588
[I] HttpHeader.h : 262 - HttpHeader::write
[I] HttpHeader.h : 417 - -> GET /blickling_river_bure_air.mp3http://stream.srg-ssr.ch/m/rsj/mp3_128 HTTP/1.1
[I] HttpHeader.h : 196 - -> Icy-MetaData: 1 
[I] HttpHeader.h : 196 - -> Host: locus.creacast.com 
[I] HttpHeader.h : 196 - -> Connection: keep-alive 
[I] HttpHeader.h : 196 - -> Accept-Encoding: identity 
[I] HttpHeader.h : 196 - -> Accept: audio/mp3 
[I] HttpHeader.h : 338 - -> <CR LF> 
[I] HttpRequest.h : 316 - Request written ... waiting for reply
[I] HttpHeader.h : 230 - Waiting for data...
 (nothing happens...)
[E] HttpHeader.h : 234 - Request timed out after 60000 ms
You must be logged in to vote

I committed a correction: So far I assumed that all https would use port 443!

Can you check if this makes a difference...

Replies: 1 comment 1 reply

Comment options

I committed a correction: So far I assumed that all https would use port 443!

Can you check if this makes a difference...

You must be logged in to vote
1 reply
Comment options

Success! This fixes both of my broken examples. You are amazing.

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /