Running PaperCut NG on port 80 (or another port)
By default PaperCut NG uses ports:
IMPORTANT: We highly recommend leaving PaperCut on these ports as many areas of the application assume these ports are open. Some organizations however have a preference for the standard port 80. This is an option, however first you must ensure that no other programs such as IIS or Apache are using the port on the same system.
Use iptables (or ipchains on old systems) to port-forward 80 to 9191. The following commands provide an example:
/sbin/iptables -t nat -I PREROUTING --src 0/0 --dst <server_ip>
-p tcp --dport 80 -j REDIRECT --to-ports 9191
/sbin/iptables -t nat -I PREROUTING --src 0/0 --dst <server_ip>
-p tcp --dport 443 -j REDIRECT --to-ports 9192
(indented text = all on one line)
Please these in a rc init script or the iptables startup config script as provided by your distribution.
Remapping port 80 to 9191 is recommend over changing the port in server.properties as port 80 directly requires processes to run with elevated root privileges. Forwarding provides an elegant solution without the need to change any PaperCut config or rights.
Advanced Admins Only
Modify the Mac firewall (ipfw) with the following command:
sudo /sbin/ipfw add 102 fwd 127.0.0.1,9191 tcp from any to any 80 in
See man ipfw for all the scary details!
Change the ports defined in the file:
C:\Program Files\PaperCut NG\server\server.properties
then restart the PaperCut Application Server" service under Control Panel -> Administrative Tools -> Services''
IMPORTANT: Also ensure the port numbers are updated in the following other areas:
config.properties file located in the client directory (client connection information).
connection.properties file located in the release directory (release station connection information)
C:\Program Files\PaperCut NG\providers\print\win\print-provider.conf (the print provider service must be restarted)
Categories: Implementation, WebTools
keywords: other port, standard ports, change ports