Thursday, August 23, 2012

Accessing an adempiere database hosting on another machine

To allow another machine to access to your instance of Adempiere, we should do following steps.
1. In your machine launch the server instance of Adempiere.
2. Make sure firewall is disabled in your in system( Where server is running ), if your firewall is enabled in default, open the the following ports
5432 - pgsql default port
1009 - JNP port and open the port where your server running ( 5432 ). ( How to open a port is covered here )
3. In server system, open pg_hba.conf file( in fedora OS system, it is located at /var/lib/pgsql/data ), add the remote system IP address to allow the connection to servers postgres database.
Ex:
# IPv4 local connections:
#host all all 127.0.0.1/32 ident sameuser
host all all 127.0.0.1/32 trust
host all all 192.168.1.112/32 trust
host all all 192.168.1.118/32 trust
host all all 192.168.1.75/32 trust

i.e. Server allows postgres connection from IP addresses 192.168.1.112, 192.168.1.112,192.168.1.75

4. Make sure another machine(ifconfig value is 192.168.1.112 ) in LAN can access your server through browser i.e. http://192.168.1.123:8080/admin/
5. Download and extract the Adempiere Client zip file on your Client. Start Adempiere via RUN_Adempiere.sh( Line 3 in Webpage )
6. It will open a window, then give the proper credentials. It will launch Adempiere client which is pointing to the instance in server.

No comments:

Post a Comment