Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How to change the default port (8069) used by odoo server

Subscribe

Get notified when there's activity on this post

This question has been flagged
port
9 Replies
149179 Views
Avatar
George Rodopoulos

How can I change the native port of odoo server in order to make it listen to different port than 8069 ? (needed in order to run multiple server instances at the same time)

Here I'm NOT looking for solutions that forward/redirect/reroute traffic to port 8069 like these:

  1. Reverse proxy through Apache or Nginx
  2. Port forwarding / port routing through e.g. iptables
1
Avatar
Discard
Avatar
Janeesh
Best Answer

There is one more option. If you need to change port number permanently to another, then you can change it in config file,

In openerp/tools.config.py     

group.add_option("--xmlrpc-port", dest="xmlrpc_port", my_default=8069,
                         help="specify the TCP port for the XML-RPC protocol", type="int")

Change this 8069 to any port number you wish to use.

11
Avatar
Discard
George Rodopoulos
Author

True that's one more option but I would avoid making any changes in odoo server code files. In order to be 'upgrade safe' I try to make any changes in server conf file or in custom modules. Thanks for the extra info though.

Avatar
George Rodopoulos
Author Best Answer

Let's say that we want to use the port 8070 instead of 8069

We can do this by setting the server option xmlrpc-port to xmlrpc_port = 8070

This can be done by starting the server manually with this option using something like this (paths may be different):

./openerp-server --config=/etc/odoo-server.conf --xmlrpc-port=8070

Or by adding in the config file (e.g. /etc/odoo-server.conf)

xmlrpc_port = 8070

There is one more option (added by Janeesh below) but it involves editing odoo server files, something I would avoid in order to keep any changes 'upgrade safe':

In openerp/tools.config.py     

group.add_option("--xmlrpc-port", dest="xmlrpc_port", my_default=8069,
                         help="specify the TCP port for the XML-RPC protocol", type="int")

Change this 8069 to any port number you wish to use.

9
Avatar
Discard
Stephen Mack

do you know which method odoo uses in their saas offerings?

George Rodopoulos
Author

Can you please make your question a little more specific? You ask about the method they use to do what? To run multiple instances? If you ask about running multiple instances I can only assume (I don't really know for sure) that they use reverse proxy (probably using nginx).

om

Thanks for the tip. I have noticed something strange though, when changing the port in the conf file everything loads fine but headers and footers are missing from reports - like when printing an invoice it's distorted with no header and footer. What would be the cause of this? Thanks.

George Rodopoulos
Author

I can't reproduce the problem that you report. I can normally print invoices to pdf and headers and footers show up without any problem. If you have a problem when you change the xmlrpc_port option which you don't have if you leave it as it is by default, probably this is a bug. If you want, please create a new question about your issue and post a link here with a comment.

om

Thanks George, I opened a question here: https://www.odoo.com/forum/help-1/question/changing-xmlrpc-port-from-8069-to-8070-causes-report-issues-60767

Avatar
Jasad Moozhiyan
Best Answer

Either you can run your odoo server like

python odoo-server --xmlrpc-port=your_port_number

If you wish to do permanently, then you can modify odoo/tools.config.py     

group.add_option("--xmlrpc-port", dest="xmlrpc_port", my_default=your_port_number, help="specify the TCP port for the XML-RPC protocol", type="int") 

1
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Change the password resend links etc after changing the port
port
Avatar
0
Mar 15
4033
RuntimeError: Couldn't bind the websocket. Is the connection opened on the evented port (8072)? v17 & v18
configuration port
Avatar
Avatar
1
Sep 25
3575
change to port 80 instead of 8069 Solved
port 80
Avatar
Avatar
Avatar
Avatar
Avatar
9
Feb 24
130085
Module porting how-to? Solved
modules port
Avatar
Avatar
Avatar
4
Oct 16
6209
Separate databases on different ports Solved
database port
Avatar
Avatar
Avatar
Avatar
Avatar
8
Dec 23
22656
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now