Odoo Help


Restriction IP Address in XMLRPC Call.

Harsh Dhaduk
on 12/16/14, 8:01 AM 1,356 views

Hi All,

How can i get IP Address in python file to restrict that ip who using XML-RPC Call.


I have two server both installed openerp and i want to restrict second server's ip in first server for not use an XML-RPC how can i do?

Thanks in advance.

On 12/16/14, 8:56 AM

Use a firewall.  If you are using Ubuntu, use gufw (https://help.ubuntu.com/community/Gufw).  Nasically what you want to do is to deny, in the 1st server, the 2nd server IP address from using port you are using for XML-RPC (default is 8069)

Harsh Dhaduk
On 12/16/14, 11:58 PM

Hi Ivan,

Thanks for your answer it is possible using firewall but i want to create using Odoo so have any idea about it?

Harsh Dhaduk

As Odoo does not have firewall function, then you need to build (part of) the firewall function into Odoo. The question is why do you want to do that instead of using firewall?

on 12/17/14, 12:47 AM

Hi Ivan, Thanks for your reply. the concept of using XML-RPC i want to add some ip's in custome module and only ip can call which i will put in openerp not using firewall. I hope you understand what is my requirement. Have any idea about this one?

Harsh Dhaduk
on 12/17/14, 2:04 AM

I don't have experience in that particular area. You can pick some ideas from the following post: https://www.odoo.com/forum/help-1/question/how-to-get-user-ip-address-25735.

on 12/17/14, 3:04 AM
Ben Bernard
On 12/17/14, 4:27 AM

Just bind the xml-rpc interface to localhost, for ipv4. In openerp configuration:

xmlrpc_interface =

With that configuration the server will only accept request from localhost, i.e. the same machine with the server. I assume you want your second server 'hidden' from the internet.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/16/14, 8:01 AM
Seen: 1356 times
Last updated: 3/16/15, 8:10 AM