Most of the configuration is made easy by the Web interface; however, it may be necessary to manually edit the configuration file to change network settings if the default is unusable on your configuration. The snippet of XML below shows what the configuration section looks like:
<network> <listen> <ip>127.0.0.1</ip> <port>8080</port> </listen> </network>
Each <listen> section inside the <network> section has an <ip> and <port> option, which should contain after them the IP address and port number to listen on, respectively. You may leave out the <ip> option to have Middleman listen on all interfaces. Middleman, by default, can listen on up to 20 ports at a time.
The Default configuration also limits access to only allow requests from 127.0.0.1, if you are unable to configure the proxy through the Web interface on the system the proxy is running on, manual adjustments will need to be made to the configuration file. Search for the <access> section, within the <allow> inside it you should see an <ip> tag, replace the “127\.0\.0\.1” with a regular expression matching the IP addresses you wish to access the proxy from, or just remove the <ip> tag altogether to allow access from any machine.