the fast, reliable localhost tunneling solution


Shoutcast port 8000 over pagekite

2012-04-07, 06:23

Since i am running pagekite successfully on my windows machine , i am currious, if i could use it for icecast/shoutcast , because i am having troouble to get my broadcaster connect to the main streaming server from behind my modem.

Thanks

Comments

  1. Bjarni Rúnar Einarsson said on 2012-04-07, 13:31
    Although I have not tested it, these pages (http://www.gigamonkeys.com/book/pract... and http://www.smackfu.com/stuff/programm...) seems to suggest that the shoutcast protocol begins just like HTTP. There is only one catch - the examples above seem to be using a HTTP/1.0 preamble, without the Host: header. If that is indeed the way shoutcast and icecast clients are written, then it may not work, as PageKite relies on the Host: header to choose the right tunnel and back-end for the connection.

    However, if the Host: header is present you should be able to tunnel ShoutCast over PageKite without any difficulty at all. The PageKite service is already listening on port 8000, so a backend definition like the following may be enough to get you up and running:

    backend=http/8000:@kitename:localhost:8000:@kitesecret

    I am assuming you are using a recent enough `pagekite.py` for the @kitename and @kitesecret placeholders to work, if not simply replace those with the correct values for you account.

    Please let us know how this goes, this is a very interesting experiment!
    Permalink
  2. macbroadcast said on 2012-04-07, 18:37
    hello Bjarni, thanks for the quick answer. I am not a coder /developer more a researcher, but your code is the most structured and best documented piece i saw in the past time, congratulation.
    It seems i am more or less depenend on your solution because i cant force my propietairy modem to portforward port 8000. So when i open the pagekite.py file where do i need to put the required line "backend=http/8000:@kitename:localhost:8000:@kitesecret" ?

    Thanks so much , happy easter and greetings to island.

    Permalink
  3. Bjarni Rúnar Einarsson said on 2012-04-07, 19:22
    Hello! If it is running on a windows machine, you want to edit a file named pagekite.cfg. If it is on Linux or a mac, you are looking for a file named .pagekite.rc.

    In both cases, the file will be found in your account's "home directory" or equivalent.
    Permalink
  4. macbroadcast said on 2012-04-08, 07:27
    Thanks again, i know , its not that difficult to find the file, i asked WHERE in the file i should add the line "backend=http/8000:@kitename:localhost:8000:@kitesecret"

    Thanks again
    Permalink
  5. Bjarni Rúnar Einarsson said on 2012-04-08, 15:08
    Oh, sorry, I misread and focused on the fact that you wanted to edit pagekite.py, which is wrong - if you open pagekite.cfg (or .rc) there should already be at least one line in the file which begins with 'backend='. Simply add another line directly below that as I described above and restart the pagekite.py program.
    Permalink
  6. macbroadcast said on 2012-04-09, 10:47
    Thanks, that was pretty easy, after i restarted pagekite , another line seems addet in my python.exe "Flying localhost:8000 as http://macbroadcast.pagekite.me:8000/

    So i can reach the streaming server at http://www.camfrogcommunity.com:8000 now and when i stream , i can see my data in the icecastserver status, but i cant hear nothing.

    I figured out that my local computer , that i use for streaming http://macbroadcast.pagekite.me:8000 is not reachable from "outside" on port 8000, so my question, when TCP is based on acknowledgement of packets, other then UDP, do i need to get reachable over port 8000 too ?

    thanks again

    Permalink
  7. Bjarni Rúnar Einarsson said on 2012-04-09, 13:03
    Hmm, I've done some more research and I think we have been on the wrong track completely. I thought you wanted to run the streaming server yourself, but now you say you want to use the camfrogcommunity server?

    In that case you are just exporting an audio stream, which as far as I can tell, does not require PageKite or any firewall configuration - you just need to be able to connect to the streaming server.

    I do not think PageKite can help you here, it sounds like you have problems with your sound-card configuration or your playback program.
    Permalink
  8. macbroadcast said on 2012-04-09, 13:43
    Hmm, I have no problems with my soundcard or playback programm so far and yes,I want to be able to reach the camfrogcommunity streaming server,who runs on port 8000, from behind my Nated and firewalled PC with BUTT http://danielnoethen.de .
    Permalink
  9. macbroadcast said on 2012-04-16, 12:17
    ok, everything works as expected, it is simply an issue in the embeded OGG frontend player. But there is another thing, i figured that my chinese friends could not reach the stream anyway, but they can get on my pagekate site, i think i will investigate on how to get the stream embeded on my pagekite site.
    Permalink
  10. Bjarni Rúnar Einarsson said on 2012-04-16, 12:40
    That sounds quite interesting, do let us know how it goes!
    Permalink

Leave a comment

( (Please leave these blank: )

We use Gravatar for commenter's photos. Get your own, it's free!