Chatting on the Net Chatting on the Net Chatting on the Net
Home     |    Site Map     |    IRC Bookstore     |    Kool Web Toolz     |    Friends of NIU     |    About Mike and Judy     |    Privacy Statement


mIRC's File Server (fserve)
Lots of people on IRC promote and share the best they have found on the net. mIRC now offers a unique built-in Fileserver. This Fileserver feature is something of a cross between DCC and FTP. You open the server window to someone (it's a special DCC chat window), restricting them to a certain directory tree where they can browse your file listings, change directories, read text files, and get files.

The syntax to set up a DCC server connection to somebody is:

/fserve [nick] [max gets simultaneously allowed] [homedir] [welcome file]

"Max" gets prevents users from bringing down your machine with too many parallel gets (downloads). 4 is probably a reasonable number. The user will have access to a designated directory called the "homedir" and all dirs DOWN in the directory tree from that homedir. "Welcome file" is a text file you can write (using a text editor like Notepad) that will welcome users to your file server. It's optional.

Examples
/fserve pipur 3 c:\serve c:\temp\serve\welcome.txt
/fserve Blazer 2 c:\outgoing c:\network\mirc\welcome.txt
/fserve Maggs 7 c:\mirc\srvfiles (note: without welcome text option)

Keep in mind that you can't set up the Fileserver and get files from yourself... you need others to test your server...
Typing help in the file server will show the available commands, which are styled after Unix and DOS. "ls" or "dir" will show a directory listing, for example. Even switched commands like "ls -k" (show file sizes in kilobytes) and "dir /w" (show a wide directory listing) work. The server supports all normal ftp commands like cd[dir], cd.., dir, ls, get, .... but NOT put, hash etc. See the Help Files in mIRC for more information on the available commands for File Server. Safety risks are none or minimal due to the major restricting of available commands.

Of course, the /fserve command can be used in your Remote section. Add this command line to your Remote Commands section under Tools/Remote/Commands (don't forget to check the Listening box):

ctcp 1:server:/fserve $nick 3 c:\serve c:\serve\welcome.txt

Other people only have to type /ctcp yournick server to activate the server.

You can also set up the File Server so that it can be accessed by simply typing in !yournick. Place this line in your Remote Events section under the Tools/Remote/Events section:

ON 1:TEXT:!yournick*:#:/fserve $nick 3 c:\serve c:\serve\welcome.txt

Remember, you can't get files from yourself! Others have to test your server for you!! In the directory c:\temp\serve, you place all files other people are allowed to get from you. The people using your server will have access to the c:\temp\serve directory AND ALL directories BELOW it.. like c:\temp\serve\games.

Using File Server to Offer Wav Files
Here's a nifty way to offer your collection of wav files to someone using the /fserve command. It's easier for a user to see what you've got without asking you what you have to offer. They can download whatever you allow them to and not bother you in the process.

In the Tools/Remote/Events section, add the following command:

ON 1:TEXT:!wav*:#:/fserve $nick 4 c:\path c:\path\welcome.txt

You can use anything you want in place of wav in the !wav* part..... wav just seems like a good choice to me. 4 is a good number or files to limit the user to so that he doesn't drag you system down with too many simultaneous gets. Path is the path to where you store your wav files and welcome.txt file.... they don't have to be stored in the same directory. For example, this is how I would have it set up on my system:

ON 1:TEXT:!wav*:#:/fserve $nick 4 c:\mirc\wav c:\mirc\docs\welcome.txt

The welcome.txt file can be created on any text editor such as Notepad. It should tell the user what the files are about and tell them what commands are available for them to use. See the Help Files in mIRC for more information on the available commands for File Server.

OKAY! OKAY! So how do you let people know to type the !wav command????? Well, instead of sending them a wav file when they type !pipur I have them see this instead:

To see and download my wav file collection, type in !wav

And how do I accomplish that you ask?? I do it by adding this line to the Remote Events section (the section under Tools/Remote/Events):

ON 1:TEXT:!pipur*:#:/msg $nick To see my wav file collection, type in !wav

Of course you would substitute your nick where pipur is, and you might use something else besides !wav, but you get the general idea. Try it out, and have fun in the process!!
How to Do Everything with MP# and Digital Music
How to Do Everything With MP3 and Digital Music
Dave Johnson, Rick Broida
(click here)



Discovering P2P
Michael Miller
(click here)



MP3 Underground: The Inside Guide to MP3 Music, Napster, RealJukebox, MusicMatch, and Hidden Internet Songs (With CD-ROM)
Ron White, Michael White
(click here)