Rod Kratochwill's Radio 8.0 Weblog
        

Radio behind a NAT/Router/Firewall

Here is how I have things setup so I can access Radio remotely from behind a firewall/NAT.

I have a SMC Barricade connected to a cable modem, which I really like because it is a 4 port 100 MB Switch that includes a print server.

First I went into the SMC configuration and allowed port the Radio is listening on to come in to my machine that is running Radio.

The IP address for the SMC Barricade is assigned via DHCP from the cable company. It doesn't change very often but every now and then it does. To address this I wrote some scripts (I borrowed them from Dave Davies actually, thanks Dave) and put them in a Tool.

There are three scripts:

1) The hourly background thread script queries the SMC box for it's current IP address and then builds a page that does a redirect to the the IP address of the SMC box. Then it FTP's that page to my web account at my ISP.

2) The tool Startup callback does the same thing as the hourly thread so I will get an update immediately after Radio starts up.

3) When Radio quits the Tool Shutdown callback would build a little page that replaces the redirect page and displays a usefull message that identifies when Radio was shutdown. I say would because I haven't been able to get the Shutdown callback to work in Tools. I have to go into Radio.root and modify some of the Userland updatable code and implicitly call the callback script.

Then when I want to access my Radio site all I need to do is load the page from my ISP and it redirects me to my Radio site.



© Copyright 2002 Rod Kratochwill.
Last update: 1/21/2002; 9:53:13 PM.