Look through the info here firstly:
In configuration file of postgreSQl server pg_hba.conf you need to add IP-Address of PC you want to connect from (without password) with the following values:
|(for current machine)
|(for all IPs within network)
If you set up md5 method and not TRUST you need to specify password.