Icecast Remote Connection
  • First of all hello to everyone and big ups to sourcefabric for this innovative product and now my question :)

    I have installed setup and got everything working fine so far although i am having an issue connecting to airtime server output stream, i am behind a router and can connect to the stream via a router ip but can't access it using my main ip,

    I have opened the ports and can stream into airtime through the master or dj connections, i have also tried changing the hostname to my ip in icecast conf but the stream fails to connect even after rebooting the machine, so have reverted back to the internal ip setup.

    So can anyone give me a few pointers please ?

    Regards'
    Mike
  • 7 Comments sorted by
  • Please define "main" IP. Is this the IP assigned by your ISP?

    Airtime Pro Hosting: http://airtime.pro
  • Yes my main ip from isp
  • Your router by default will block any external connections from accessing computers inside your home network.

    Most web servers that Airtime runs on are connected directly to the internet, so they do not usually have the problem you have now.

    To get around this you need to enable "port forwarding" in your router. Go into the router WebUI, and tell it to forward any external requests on port 8000 to port 8000 of the machine hosting Airtime.
    Airtime Pro Hosting: http://airtime.pro
  • I can access the airtime main page through my main ip from external machines i can also stream to airtime it's just the output stream that i'm having issues with, all the ports have been forwarded the ports as i mentioned in my first post.
  • 192.168.0.9 Which is the local ip i have forwarded all the ports on, i can listen in 192.168.0.9:8000/live.ogg but if i use my main ip the stream fails to connect.

    I'm thinking it's related to this http://forum.sourcefabric.org/discussion/comment/19957#Comment_19957 but am reluctant to make the changes since everything is running fine after 5 installations and formats. I'm fairly new to ubuntu as well although i do have webhosting experience with linux.
  • What's the output of

    curl -v 192.168.0.9:8000/live.ogg

    vs

    curl -v your_public_ip:8000/live.ogg
    Airtime Pro Hosting: http://airtime.pro
  • After trying the first command the screen went into overload and kept sending the same message over and over i was forced to reboot and now it connects fine externally :)

    Thanks for your help Martin.