mIRC DCC Sends/Recieve(Fserve)
Note: If you run a personal firewall (or on home/work network with a firewall) you may have to either turn off the firewall or read up on using the firewall option of mIRC Options. Or just forget it all together.
mIRC Setup:
Under the Options menu of which there are a couple of ways to get there
-1 On the toolbar at the top 2nd in from the left or
-2 Click File (in the upper left hand corner above the toolbar) then click Options or
-3 Hold the Alt key and press the O key.
Check the following options to see that they are checked or unchecked.
Connect\Local Info
The Local Host: and IP Address: boxes donot have to have anything done to them(they take care of themselves)
On connect, always get:
checked - Local Host
checked - IP Address(grayed out)
Lookup method:
checked - Server
Connect\Identd
checked - Enable Identd server
The User ID: box put something in (max 8 characters) please donot use all capital letters.
The System: box you can leave UNIX in it or put your operating system ie.. windows 98.
The Port: box just leave it with 113 in it.
checked - Show Identd requests
checked - Enable only when connecting
uncheck - Use ID from email address
Connect\Firewall
We will leave this section for now with its defaults ... however if we need to
investigate it for ppl that are running personal firewalls we will.
DCC\
Leave the defaults in this section..
DCC\Options
On DCC completion:
Notify with beep:
uncheck - Send
uncheck - Get
uncheck - Chat
Close window:
checked - Send
checked - Get
checked - Chat
Time-out in seconds:
All options here are at 9999 seconds.
DCC Ports:
First: box 1024
Last: box 5000
Max DCC Sends: box 3
The rest are unchecked.
DCC\Folders
Use defaults.
DCC\Fserve
Use defaults mainly cept for ---
Root Folder:
it should point to your mp3 folder if it doesn't double click on the box and a window appears navigate to your mp3 folder and select it.
DCC\Server
All options are checked and the Listen on Port: is 59.
Press Ok to get out of the Options menu.
Now before you close down mirc type these commands into the status window (you donot have to be connected to the server to make these commands work).
Type /DCC PACKETSIZE 4096 and press enter ...
Your return message in the status window will be *DCC Packet Size is 4096
Type /FSEND ON and press enter ...
Your return message in the status window will be *Fast Send is on
Type /PDCC 2147483647 and press enter ...
Your return message in the status window will be *Pdcc is on
Ok if you have made it this far you are good .... Now unless you are a scripter then you might want to ask around for opinions on a good fserv script to add to your mirc to help you out with the rest.
Scripts like ....
txplay60 by texxy and Undernet #mIRC_Rainbow
SpR v8.7-rc3 Multimedia Jukebox - Your mIRC add-on for multimedia files written by SpinoC
are a couple of good ones for mp3's
Fileserver or File Exchange Scripts like ....
fservu12.mrc - 7-26-2000 by Sprinter
mIRC Fserve
The command below should be placed in your remotes, replacing the appropriate items: (it tells mirc how to handle the file serve portion of the program)
/fserve $nick < maximum gets simultaneously allowed > < home directory > < welcome file >
$nick Leave this identifier as it will allow anyone that types your trigger word to use your File Server.
-- Replacing --
< maximum gets simultaneously allowed > This is number of files that one person can get from you at one time.
Note: It might be an idea to keep this number low if you are on a dialup connection.
< home directory > This is the folder (which contains files and folders) on your hard drive that you wish to share with others. say you wish to use the folder fserve inside your mirc main folder the path would look like this c:\program files\mirc\fserve .
It is best not to leave your folder at C:\ as this opens your whole computer up to people that could do damage.
< welcome file > (optional) this text file(.txt) that can be put in the fserve folder and plays automatically when someone enters into your fileserve using your trigger... it can also be put in another folder if you wish but then you have to specify the whole path to the file ex. c:\program files\mirc\mrc\welcome.txt. A welcome.txt file can be made using a text editor such as notepad or wordpad from windows or even a word processor so long as you save it as a text only file to welcome people to your file server.
Using the examples above we would put the following line in a remote file.
/fserve $nick 3 c:\program files\mirc\fserve c:\program files\mirc\mrc\welcome.txt
This is all well and good but what triggers it to work you say: Well there are a couple of ways this is done.
on *:text:!trigger:*: {
fserve $nick 3 c:\program files\mirc\fserve c:\program files\mirc\mrc\welcome.txt
}
- or -
ctcp *:!trigger: {
fserve $nick 3 c:\program files\mirc\fserve c:\program files\mirc\mrc\welcome.txt
}
-- Replacing --
!trigger with your own unique trigger word or phrase. This is the word or phrase that will be use by your friends to get into your file server.
* can be replaced with a channel name or can be left the * (triggered from any channel).
Ok one other thing that needs to be said about triggering these two different ways of file serve. The first one is triggered by someone typing the !trigger only.. The second one is triggerd by someone typing the sequence /ctcp yournick !trigger.
One other thing we have all this file serve put together now how do people know I have a file server running?
This is one of the only places that advertising is allowed. And to do this we are going to inlist the help of a timer:
menu channel,menubar {
-
On: {
me Type.. !trigger to access my Fserve of (*.mp3) user limit 3 file(s) at a time.
}
Off:.timerfs off | echo 4 -a Fserve Advertisement Timer Is Now OFF
}
Placing the above script in your remote file with the file serve script talked about up above will allow you to have a timed message(advertisement) for your file server.
The Advertiser Timer is all operated from either the menubar/Commands selection in the tool bar of mirc or it is called up by right clicking on one of the channel's.
Notes:
1.) If you have a large number of files to put on your file server you may want to group them into subdirectories of commonalities.
2.) If a user is idle too long the fileserver will automatically close the connection set the time for idle close in the Options\DCC\options.
3.) A user is limited to opening 1 fileserver session at one time. If mirc starts a fileserver session to a user and that user doesnt respond then the fileserver will have to timeout and close before
that user can ask for another session.
mIRC Fserve Common Opperating Commands.
cd < directory > changes directory.
dir < -b/k > < -# > < /w > File listing of current directory.
----< -b/k > File sizes shown in -b bytes or -k kilobytes.
----< -# > Number of files on each line (horizontal listing).
----< /w > Wide listing.
ls < -b/k > < -# > Wide File listing of current directory.
---< -b/k > File sizes shown in -b bytes or -k kilobytes.
---< -# > Number of files on each line (horizontal listing).
get < filename > Requests from the file server a dcc send of < filename >.
read < -numlines > < filename.txt > Read specified text file.
------< -numlines >(default is 20 lines) can be adjusted between (5 and 50) lines per time.
------< filename.txt > Name of text file.
help Lists available commands.
exit or bye Terminates file serve.