Windows Server 2012下Odoo 11如何从本地访问改为服务器IP访问
Make Odoo 11 Accessible via Server IP (Windows Server 2012)
Got it, let's get your Odoo 11 instance open to remote devices instead of just localhost. Here's how to set it up step by step:
1. Modify Odoo Configuration File
First, we need to tell Odoo to listen on all network interfaces instead of only localhost:
- Locate your Odoo config file. By default, it's at
C:\Program Files (x86)\Odoo 11.0\server\odoo.conf(adjust the path if you installed Odoo to a custom directory). - Open the file with Notepad or Notepad++ (run as administrator if you hit permission errors).
- Find the line starting with
xmlrpc_interface. It's probably set toxmlrpc_interface = 127.0.0.1by default. Change it to:
This makes Odoo listen on all available network adapters.xmlrpc_interface = 0.0.0.0 - Double-check the
xmlrpc_portline (should bexmlrpc_port = 8069by default) – keep this as is unless you've changed Odoo's port manually. - Save the config file, then restart the Odoo service:
- Press
Win + R, typeservices.msc, and hit Enter. - Find the service named
Odoo 11.0, right-click it, and select Restart.
- Press
2. Allow Odoo Port in Windows Firewall
Even if Odoo is configured correctly, Windows Firewall will block incoming connections to port 8069 by default. Let's fix that:
- Open Windows Defender Firewall and click Advanced Settings on the left sidebar.
- Select Inbound Rules from the left pane, then click New Rule on the right.
- Choose Port as the rule type, then click Next.
- Select TCP, enter
8069in the Specific local ports field, and click Next. - Choose Allow the connection, then click Next.
- Check all network profiles (Domain, Private, Public) that apply to your server's environment (usually all three are safe for internal access), then click Next.
- Name the rule something like
Odoo 11 HTTP Accessand add a description if you want, then click Finish.
3. Test the Setup
- On the server itself, open a browser and navigate to
http://[Your Server IP]:8069– you should see the Odoo login page load up. - Grab another device on the same network, open its browser, and enter the same URL. If everything works, you'll be able to access Odoo remotely.
If you still can't connect, double-check:
- Your server's IP address is correct (run
ipconfigin Command Prompt to confirm the IPv4 address). - The Odoo service is running properly in
services.msc. - There's no additional hardware firewall (like a router) blocking port 8069.
内容的提问来源于stack exchange,提问作者Dhruv
相关产品推荐
相关产品推荐

