how to access odoo remotely on network? - server

I have install Odoo on windows server 2008 with fixed ip and this machine connect with Ethernet in network.And my ip address is 192.168.1.200.
So how to access Odoo remotely in network.

By default odoo runs on port 8069. So try 192.168.1.200:8069.
Or if you have defined any other port in your conf file, then change 8069 to that port.
Also you can check log file(if you have specified), It will show like running on 0.0.0.0:port_number.

Related

How to connect from one server to another server`s postgresql database by configuring firewall

I am trying to connect from Ubuntu 16.04 server to Gentoo server`s Postgresql database. But i cannot connect to it. Ubuntu server has internet with static Ip: 93.154.53.88. In my Gentoo server has Ip: 192.168.0.104. I configured my pg_hba.conf also to Ip address of Ubuntu server. But anyway it cannot connect to it. My pg_hba.conf is like below:
host all all 93.154.52.85/32 trust
host all all 93.154.53.88/32 md5
When i ping to my Gentoo Server like below it is not going. I think I should configure some firewall settings.
ping 93.154.53.88
But When i connected my Gentoo Server`s database from second Linux server it can connect which has Ip address: 93.154.52.85. But Ubuntu server cannot connect to it. I read some post in which iptables need to be configured Please Help me What to configure and how to do it. Any help is appreciated.

How to implement proxy mode in Postgresql server

Postgresql 9.1 server is running in Debian 6 Linux under VPS and accessed by IPV4 address from clients.
I want to move it to other VPS server with never Debian and PostgresSQL 11.
How to implement this so that clients can use same IP address ?
Is it possible to force Postgres to redirect requests to other IP ?
Debian has redir demon ( https://manpages.debian.org/testing/redir/redir.1.en.html )
Is it best way to use it to redirect requests to 5432 port to other server ?
Yiu have several options:
If you control the DNS server, map the name to the new IP address.
Install pgBouncer on the old machine - in session pooling mode, it will work as a proxy.
Start an SSH tunnel on the old machine that redirects the requests to the new machine.

How can I connect to local database on a windows machine from a tomcat server on Ubuntu in a virtual machine

I am trying to set up a server in a virtual machine using the Oracle VirtualBox. I use Ubuntu 18.04 LTS in the VirtualBox. I use PostgreSQL as my database.
In my Tomcat, I have a property file where I provide the database URL and password. I want the tomcat that is set up in the VirtualBox to be able to access a local database that is set up using PGAdmin in my Windows machine in which the VirtualBox is installed.
Is it possible to do that?
When connecting to a SQL server DB running on my host machine from a VM, I use the IP address to connect.
You can run ipconfig (or your OS's equivalent) to find the IP address of the machine serving the DB, then try to connect from your host machine via that IP address instead of the machine name.
There might be some VM-specific settings you need to tweak to allow network access between the VM and host, refer to this post for more info. Usually I have to set my VirtualBox network mode to bridged adapter.

pgAdmin can't connect to database server

Database server os = Ubuntu 16.04
client machine= Windows os 8.
we are not able to connect database server from pagAdmin which I have installed on my laptop (while its prompting for password).
Have you configured "pg_hba.conf" file in the server for remote access? IF not, you need to add following in the file
# vi /var/lib/pgsql/data/pg_hba.conf
host all all 192.168.101.20/24 trust
192.168.101.20/24 is just an example, you need to write clients IP and port.

Windows Azure - Linux Virtual Machine - Opening a port for PgSQL

I'm trying to open a port on Windows Azure, and I have already:
Open a port on Azure portal using NSG
Open a port on Linux virtual machine (iptables)
The port is open for all machines in the Windows Azure LAN network
I can't telnet from my remote host to Azure VM on PgSQL port (5432)
I have the same rule on iptables for 22 port and 8080 and those two rules are working...from my remote host..
I have also try to use tcpdump but I can't capture any packages for 5432 port when I try do telnet this port form my remote host...
No, my ISP don't block this port
I'm running out of ideas... if Azure is blocking the port, what will be point of setting NSG in the first place?
I have solved this problem some time ago, maybe it will be useful for someone. EnyƂej, when creating rules for azure firewall the numbers are very important:
if you have:
1000 allow-default-ssh
2000 allw-default-sth
don't create a rule with numbers like 1100 allow-smtp, start with a higher number like 2100.