6

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

snakecharmerb
  • 47,570
  • 11
  • 100
  • 153
Maysam AL
  • 249
  • 1
  • 4
  • 18

5 Answers5

7

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).

Community
  • 1
  • 1
Maysam AL
  • 249
  • 1
  • 4
  • 18
1

In windows, edit the file:

C: \ Program Files (x86) \ Odoo 12.0 \ server \ odoo.conf

Change the line

http_port = xxxx (change the x for the port you want to use).

vahdet
  • 6,357
  • 9
  • 51
  • 106
0
  1. Login to the server
  2. Run command below:

sudo vim /etc/rc.local

  1. Add the following lines

#!/bin/bash

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 /sbin/iptables-save exit 0

  1. save and quit (wq!) from the vim editor
  2. reboot server from the AWS console. (if you are using aws hosting)
  3. Open port 80 in the security group inbound rules in AWS console
  4. access the IP address on browser
0

You have to change the xmlrpc_port key to another port in odoo.conf file. example : xmlrpc_port = 8001

0

If you use PyCharm, you can make the Run configuration like this

enter image description here

Or you can change the port in odoo.conf file. Choose one between xmlrpc or http

xmlrpc_port = 8000
# or
http_port = 8000
NM Naufaldo
  • 1,032
  • 1
  • 12
  • 30