How To Change Default Port on Odoo


The default port of Odoo installation is 8069.
If you need to change the default port, please use this step..

vim /etc/odoo/openerp-server.conf

Add this code on the file, please change the port to what you want to

xmlrpc_port = 9069

If you want to access on port 80 or 443 (SSL) to avoid the port numbers entirely, you may want to take a different approach. Port 80 can be done by leaving Odoo running at 8069, then adding in an iptables rule to forward traffic from 80 to 8069. This bash script does the trick, please make sure you change eth0 if needed:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069

Thank you.

Source :