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.
Just bind the xml-rpc interface to localhost, 127.0.0.1 for ipv4. In openerp configuration:
xmlrpc_interface = 127.0.0.1
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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/16/14, 8:01 AM|
|Seen: 868 times|
|Last updated: 3/16/15, 8:10 AM|