Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

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

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

OpenERP 7: from localhost to fixed IP adress

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
v7fixedlocalhostip
9 Respostas
34099 Visualizações
Avatar
Laurens

I installed OpenERP 7 on a Windows XP OS with the All-in-one setup. During the testing-phase I was running everything under localhost on my virtual machine. The databases are hosted under postgresql 9.2, and I can backup/restore using Pgadmin III without problems.

Now I want to assgign an IP adress to my databases and the server, so I can naviagate to the web client from a different machine in the network.

Most of the information I find is for linux distributions or older versions of OpenERP, and it's quite confusing. Thus far I've only been facing error messages when trying to make the necessary changes.

Could someone please tell me all the configuration files I need to edit under windows, so I don't miss any? The location of set file is good information, but if you would just tell me all the names of the config files, I would already be very grateful.

I have already editted the "openerp-server.conf" files under "C:\Program Files\OpenERP 7.0-20130305-002149\Server\server".

It now reads:

[options]
without_demo = False
unaccent = False
db_template = template1
db_password =openpgpwd
xmlrpcs = True
xmlrpcs_interface = 
syslog = False
logrotate = True
xmlrpcs_port = 8071
test_report_directory = False
list_db = True
timezone = False
xmlrpc_interface = 192.168.100.102
test_file = False
smtp_password = False
secure_pkey_file = server.pkey
xmlrpc_port = 8069
workers = 0
log_level = info
xmlrpc = True
admin_passwd = admin
smtp_port = 25
smtp_server = localhost
static_http_url_prefix = None
limit_request = 8192
test_commit = False
proxy_mode = False
demo = {}
dbfilter = .*
login_message = False
import_partial = 
pidfile = None
db_maxconn = 64
osv_memory_count_limit = False
reportgz = False
osv_memory_age_limit = 1.0
netrpc_port = 8070
db_port =5432
db_name = False
debug_mode = False
netrpc = False
limit_time_real = 120
limit_memory_hard = 805306368
logfile = C:\Program Files\OpenERP 7.0-20130305-002149\Server\server\openerp-server.log
csv_internal_sep = ,
limit_time_cpu = 60
pg_path =C:\Program Files\OpenERP 7.0-20130305-002149\PostgreSQL\bin
limit_memory_soft = 671088640
static_http_enable = False
translate_modules = ['all']
smtp_ssl = False
server_wide_modules = None
netrpc_interface = 
smtp_user = False
log_handler = [':INFO']
db_user =openpg
db_host = 192.168.100.102
test_enable = False
max_cron_threads = 2
static_http_document_root = None
email_from = False
addons_path = C:\Program Files\OpenERP 7.0-20130305-002149\Server\server\openerp\addons
secure_cert_file = server.cert

Is there anything else I need to edit in this file, or in another file?

5
Avatar
Cancelar
Laurens
Autor

I have since also gone through the "postgresql.conf", "pgpass.conf" and "pg_hba.conf" files, under the Openerp/Server/Postgresql/data folder; and editted any mention of localhost to "192.168.100.102". The ports I left unchanged.

Since then I have stopped and started the OpenERP Server process under services a few times, but as of now I can't reach my server through either adress. (localhost nor the fixed IP adress)

I'm not sure I'm going about this the right way, any feedback would be appreciated.

Laurens
Autor

I have fixed my problem some time ago, I found it best to start from a fresh install. Leave all settings default, and start editting network settings once the server is already up and running.

Avatar
Laurens
Autor Melhor resposta

My problem was related to compatibility issues from a previous postgresql installation. I searched my registry for all postgresql and openerp related keys, deleted them all - and then reinstalled postgresql and openerp completly. After initial configuration I was able to recover most of my dump files, and have been running without major problems so far.

1
Avatar
Cancelar
Avatar
AJ Schrafel Paper Corp
Melhor resposta

If you can connect to your server from the local machine in a web browser pointed to localhost:8069 - Your problem is probably with windows firewall.

This Microsoft article gives some good details on how to open up a port in windows firewall - http://support.microsoft.com/kb/308127

2
Avatar
Cancelar
Avatar
Jonathan Leaders
Melhor resposta

Configure Odoo

This is for 10, but will work for all versions

In C:\Program Files (x86)\Odoo 10.0\server

change (where your IP is 192.168.1.17 -- update accordingly)

db_host = localhost

to

db_host = 192.168.1.17


Configure PostgreSQL

In C:\Program Files (x86)\Odoo 10.0\PostgreSQL\data\pg_hba.conf

Add the following line

host    all             all             192.168.1.17/24            md5


Restart Server

Go to Windows Services and restart the following services:

  • odoo-server-10.0 10.0

  • PostgreSQL_For_Odoo - PostgreSQL Server 9.5

Test Firewall

go to http://192.168.1.17/ on your local device. It should work.

Then try on an external device on the internal network. If it fails on the external device, disable windows firewall and try again. If it works, then add an exception for C:\Program Files (x86)\Odoo 10.0\server\odoo-bin.exe

0
Avatar
Cancelar
Avatar
akma72
Melhor resposta

I have the same problem on a W7, I completely disabled the firewall and does not work :(, any ideas?

this config file Laurens touched, what did he change exactly?

Thanks, Akma

0
Avatar
Cancelar
AJ Schrafel Paper Corp

Do not change anything in the config files, that is completely unnecessary. The first thing you need to confirm is that you can access your openerp install by navigating to localhost:8069 - if you can do that then openerp does not need to be touched - it is a problem with your settings in windows

akma72

actually, changing "localhost" for the IP of the server in 2 places in that config file, fixed the problem :)

Laurens
Autor

Indeed, I changed the host in the config file. Don't forget to check the postgresql config files from your Pgadmin client. Important to note is that you need to format the host as IP / subnetmask. For instance: 192.168.xxx.xxx/24.

Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
how to get user ip address? Resolvido
v7 ip
Avatar
Avatar
Avatar
Avatar
Avatar
10
jun. 21
41645
hot to set ip for available from ip valid?
localhost ip
Avatar
0
mar. 15
4585
How can I tell if a fix for a bug is available to me?
v7 fixed released
Avatar
Avatar
1
mar. 15
5794
How to set a fixed product selling price for a customer?
v7 fixed price selling
Avatar
Avatar
1
mar. 15
7694
How to add a "Delete" button on the popup form? Resolvido
v7
Avatar
Avatar
1
out. 25
5452
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة 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 é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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