Back to the Maz World Gopher Root | |
Hello! If you're here, you're probably interested in setting up a gopher server… | |
These instructions are for setting up a gopher server on Windows. | |
If you're looking for Unix/Linux, you're out of luck. Try Google. | |
Program Setup | |
First, you need to grab the server program. I use gopher cannon. | |
Extract the zip somewhere, and then decide on a place to serve the files from. | |
I used c:\gopher\program for the program, and c:\gopher\files for the files. | |
You can use the sample site to get an idea of how to write the folder indicies. | |
In general, the basic Gopher format is as follows (replace the 1 with the type … | |
1Name For Link<tab>Relative Path to Resource From Server Root<tab>Server Addres… | |
A list of object types can be found at http://en.wikipedia.org/wiki/Gopher_(pro… | |
Next you need to configure the server for your machine. Open the program.confi… | |
and change the hostname to your domain name, and the root folder to where your … | |
Firewall Configuration | |
Now you need to add an exception to your firewall. I'll give instructions for … | |
For any other firewall program, open up TCP port 70. | |
For Windows firewall, go to Control Panel and open up Windows Firewall. | |
In xp: Click on allow a program through Windows Firewall, and add TCP port 70. | |
In Vista/7: Click on advanced settings. Under view and create firewall rules, | |
click inbound rules and add a rule for TCP port 70. | |
Now you should be all set to start serving Gopher! If your computer is behind … | |
if you wish to install the server as a Windows Service, read on. | |
Configuring Gopher Cannon for use behind a Router | |
Log in to your router (typically http://192.168.1.1). Your user manual may hel… | |
Look for NAT, Port Forwarding, Virtual Server, or something similar. Create a … | |
forwarding TCP port 70 to TCP port 70 on your server's ip address. You can fin… | |
by opening command prompt, typing ipconfig hitting enter, and then scrolling up… | |
Save your configuration and you should be good to go. | |
Installing Gopher Cannon as a Windows Service | |
Download srvany. It's a small program needed to run Gopher cannon as a service. | |
Save it to where you have the gopher program files. Open a command prompt (in … | |
Type 'sc create "Gopher Cannon" binPath= "fullpathtosrvany" start= auto'(minus … | |
the full path to the srvany.exe file instead of fullpathtosrvany. Hit enter. … | |
successfully. Now open up the Registry Editor. You can do so by hitting the W… | |
in the box and hit enter. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControl… | |
Create a new key called Parameters. In this new key, create a string called Ap… | |
use the full path to the Gopher Cannon.exe file. Close out of regedit. Now, i… | |
open up the Services Control Panel. Hit the windows key and r and type service… | |
Scroll down to Interactive Services Detection, double click it and change the s… | |
This stops a nagging window when Gopher Cannon is running in the background. | |
Click ok, reboot, and you should be golden! | |