XML-RPC

The --xmlrpc-port parameter in Odoo specifies the port on which the XML-RPC server will listen for incoming requests. By default, Odoo runs on port 8069, but by using this parameter, you can change it to any other available port, such as 8070.

XML-RPC is a protocol used by Odoo for remote procedure calls, allowing communication between clients (like your browser or mobile app) and the Odoo server. When you use the --xmlrpc-port parameter, you are specifying the port on which Odoo’s web interface will be accessible.

Odoo, by default, listens on port 8069 for XML-RPC requests. When you specify --xmlrpc-port=8070, you are telling Odoo to bind its web server to port 8070 instead of the default 8069. This means that the web client (i.e., your browser or any external client) will send requests to http://<server-ip>:8070 to access the Odoo instance.

If you have the Odoo server running on your local machine and you want to access it via port 8070, the URL you would use in the browser will be: http://localhost:8070 , Thus, the --xmlrpc-port=8070 ensures that Odoo listens for requests on port 8070 instead of the default 8069.

XML-RPC (Extensible Markup Language Remote Procedure Call) is a protocol that allows communication between different systems over a network, using XML to encode the requests and responses, and HTTP as the transport mechanism. It is based on the idea of making remote procedure calls (RPCs) to execute functions on another system.

Here’s a breakdown of the XML-RPC protocol:

  1. XML Format:
    • The protocol uses XML to encode the data (request and response) in a structured manner.
    • XML-RPC messages consist of a method name and parameters that need to be passed to the method.
    • The data is serialized in XML, and both the request and the response are transmitted over HTTP.
  2. HTTP Transport:
    • XML-RPC messages are transported over the HTTP protocol (or other transport protocols, such as HTTPS).
    • The request is an HTTP POST request containing an XML message with the method and parameters.
    • The response is returned in an HTTP response, also in XML format.