[image: network-cables]
What are replacement-rules?

Replacement rules is inAudio:s way to enable you to access your files from remote computers.

<-- Back to the F.A.Q mainpage

You can setup a number of replacement rules to access the files on your computer/server from other computers by setting up replacement- rules.
By doing this you can for example tell inAudio that it should stream files using a webserver.
Why would you want to do this?
Well, you could for example set up your (internet-connected) machine at home so you can access your music from your work and vice-versa.
In short, a replacement rules replaces any occurance of a string with any other string in a filepath.
Let's look at an example!
Let's say that your musicfiles are located at d:\music files\
Let's assume that your computer have the name www.myserver.com on the internet
(you can use the IP-number of your machine as well if you have a static ip).
If you dont have a static IP, you can still use this feature if you signup to a dynamic dns-service such as dyndns.org or DNS2Go.
To share your files using your webserver
(this is the recommended way since Winamp (or XMMS if you are playing music on a linux-system) can stream music directly from webservers) you need to setup a virtual directory in your webserver pointing to d:\music files\ as well as setup 3 replacement rules.

Replacement rules are setup using the inAudio ControlPanel which you can find in your start-menu or in the inAudio application installation directory (C:\Program Files\Octagon Inaudio or similar).
When you are in the Control Panel, click on the "Replacements"- tab.

Assuming you have setup the virtual directory pointing to d:\music files\ and named it music, the replacement-rules would look like this:
  1. Name of replacement rule 1: WWW Rule 1.
    Text to replace: d:\music files\
    Replace text with: http://www.myserver.com/music/
    Apply rule for: (check all checkboxes)
  2. Name of replacement rule 2: WWW Rule 2.
    Text to replace: \
    Replace text with: /
    Apply rule for: (check all checkboxes)
  3. Name of replacement rule 3: WWW Rule 3.
    Text to replace: (space.. type in a space with the spacebar-key)
    Replace text with: %20
    Apply rule for: (check all checkboxes)

    That's it! :)

    Before you go on and save you changes you can click the "Test"-button to make sure everything is correct.
    If you type in:
    d:\music files\my file.mp3
    The result should be:
    http://www.myserver.com/music/my%20file.mp3
    in the example above.

    For an example with screenshots using Internet Information Server, see this F.A.Q.

<-- Back to the F.A.Q mainpage


  Copyright (c) 2001-2010, Octagon Development Group and Anders Gardebring