How do I change the odoo default port?

Maysam AL picture Maysam AL · May 31, 2016 · Viewed 14.4k times · Source

In Odoo, by default the port is set to 8069, I want to change it to another port.

I've tried changing in the openerp-server.conf, the value of xmlprc, but even after restating the server, the new port doesn't work

Answer

Maysam AL picture Maysam AL · May 31, 2016

I found the solution in : How to change openerp server default

The location of the file were we can change the default port 8069 is "server/openerp/tools/config.py" file.

I followed the instruction in the link mentioned before, but I still couldn't open Odoo with the new port until I changed the xmlprc_port to the new value in "server/openerp-server.conf". After I restarted the server, it worked fine.

Edit

(from comment by @danidee)

you can also change the port on the fly by starting odoo with

odoo.py --xmlrpc-port=8000

(just using 8000 as an example).