server migration on local network

Following:

server1 and server2 are on the same subnet/network.

apnscp_php /usr/local/apnscp/bin/scripts/transfersite.php --stage=0 -s 192.168.11.101 site1
1
(PDOException) EXCEPTION: SQLSTATE[08006] [7] could not connect to server: Connection refused
        Is the server running on host "localhost" (127.0.0.1) and accepting
        TCP/IP connections on port 5432?
could not connect to server: Network is unreachable
        Is the server running on host "localhost" (::1) and accepting
        TCP/IP connections on port 5432?
[/usr/local/apnscp/lib/PingablePDO.php:21]

im running the command on the ‘old’ server to migrate to the ‘new’ server
defaul install on the new server.

Duplicate of a lot of problemos - #32 by msaladna