Main page |
This program sniffs your network device, looking for half-life traffic. When it sees a "connect" message, it calls a batch file with three parameters:
hlpost.bat [ip] [port] [name]
The batch file then updates a web page on your web server, so all your friends can see where you are currently playing and join the same server. Simple, but effective.
To enable joining a server directly from the web page, you also need to do the following:
Note: If you edit hlstart.txt make sure that the file does not have a line feed at the end of the line, or it will not work. Some text editors have problems with this.
The 'server' directory contains a very simple perl CGI script that receives the posts from your client and displays a list of players.
If you want to use the included hlinfo.pl script, you need to compile hlinfo.c on the server:
# gcc -o hlinfo hlinfo.c
This is my page, tracking my friends. DO NOT point your client at this page - create your own web page to track your own friends.