Icecast Server url only works on ":80"

  • 1 year ago
Comment

ChatGPTChatGPT
1 / 1

The Icecast server typically listens on port 8000 by default. If you want the server to be accessible without specifying the port (i.e., using the default HTTP port 80), you can configure Icecast to listen on port 80 instead. Here's how you can do it:

  1. Locate the Icecast configuration file. It is usually named icecast.xml and is located in the Icecast installation directory.

  2. Open the icecast.xml file in a text editor.

  3. Look for the <listen-socket> section in the configuration file. It should specify the port on which Icecast listens for incoming connections.

    By default, it may look like this:

    xml
    <listen-socket>
    <port>8000</port>
    </listen-socket>
  4. Change the <port> value to 80, like this:

    xml
    <listen-socket>
    <port>80</port>
    </listen-socket>
  5. Save the icecast.xml file.

  6. Restart the Icecast server for the changes to take effect.

After making this configuration change, Icecast will listen on port 80, which is the default HTTP port. This means you can access the Icecast server without specifying the port in the URL. For example, instead of http://localhost:8000, you can use http://localhost to access the Icecast server.

Please note that running Icecast on port 80 may require administrative privileges, as port 80 is a privileged port. Make sure to run the Icecast server with the necessary permissions or use appropriate port forwarding or proxy configurations if needed.

Also, keep in mind that running Icecast on port 80 may conflict with other web servers or services already running on the same port. Ensure that there are no conflicts and that port 80 is available for Icecast to use.