SHOUTCasting through a Linksys Cable/DSL Router for Dummies
This is a repost of my previous post about configuring a Linksys router for SHOUTCast...
First, we have to make some changes to our network setup. We can't use DHCP and forward ports at the same time, so we'll have to assign IP addresses to all the computers on our network.
To begin, we need some info from the router. We'll log into the web-based interface for our router. The default address is 192.168.1.1. Enter your password and click the "Status" tab. Now make note of your listed DNS servers under the WAN Section. These will be important in getting our computers behind the router to connect to the Internet once we assign IPs to them.
Next, click the "DHCP" tab. Here we need to ensure that DHCP server is set to "Disable". Click the radio button next to "Disable" and click "Apply". This is will ensure that our port forwarding works.
Now to assign IP addresses on most Windows boxes goto Control Panel and open Network Properties or Network and Dial-up Connections. Here we'll see a listing of network components. The one we're interested in in is the one called "TCP/IP -> <network card>" where <network card> is the network card connected to the router (usually the only network card in the system). Double-click this entry.
Various versions of Windows look quite different here. First you want to find the option for "Specify and IP Address" and turn that on. That will activate several fields for IP Address, Subnet Mask, and Default Gateway. The Subnet Mask should be 255.255.255.0 in most cases. Default Gateway should be the address of your router on our LAN, 192.168.1.1 by default. The IP Address should be 192.168.1.x where x is a different number for each computer on our network. We'll assign 192.168.1.2 to the computer running SHOUTCast server.
Now we need to setup our DNS server addresses. These are the computers that translate the domain names humans use into the IP addresses that computers use. In Windows 2000 these settings will be directly below where you set you IP address. In most other verisons you'll find them on the "DNS" tab. Make sure that "Enable DNS" is checked and fill in the address we got from the router earlier in the space provided. When we have the first one entered we'll click "Add" and repeat the process for the second and, if it exists, the third. In Windows 2000 we'll just have two boxes to fill in and no "Add" button.
Now we click "Ok" and close Networking Properties and restart Windows.
Next we have to log into the web-based interface for our router again to set up the port forwarding.
Click the "Advanced" tab and then click the "Forwarding" tab. We'll see a series of rows with two fields seperated by "To" labled "Ext. Port", a drop box with entries for TCP, UDP, and Both, and a place for an IP address. If you have a later firmware on your router you may have check-boxes for TCP and UDP, a filed labled "Customized Applications", and a check-box labled "Enable".
We want to set the "Ext. Port" range to the ports our SHOUTCast server will be working on. If we left the port assignments in the server config at their defaults these will be 8000 for connections and 8001 for the source stream, so we'll enter "8000" in the first port field and "8001" in the second port field. We will enable both TCP and UDP. In the case of the earlier firmware just select "Both" from the drop box. With the later firmware check both the TCP and UDP check-boxes. For IP Address we want to enter the IP address of the computer our SHOUTCast server is running on, 192.168.1.2 if you were following the directions above. If you have the newer firmware be sure to check "Enable" and you don't have to worry about "Customized Applications" Click apply and you're done!
Alternativly, instead of setting port forwarding you clould just put your SHOUTCast server in the DMZ. This is less secure as it exposes all ports on the machine. To do this, click the "Advanced" tab in the router config and then click "DMZ Host". In the space provided enter the IP address of the SHOUTCast server, 192.168.1.2 in the previous example, and click apply.
Hope this helps out.