Windows host with Vmware Workstation, and a linux guest. I have another Windows host with PostgreSQL running on localhost:5432.
I established NAT connection to be able to use Internet in VM. Vmnet1 hostonly and vmnet8 NAT.
The problem occurs when I import CSV data to my postgreSQL database using NIFI. It is unable to establish connection.
I also edited my server configuration so it listens to external requests. But still my attempts to connect to my server on main machine ended up like this:
psql -h 192.168.1.60 -p 5432 -U postgres -d POSTGRES
error: connection to server at "192.168.1.60", port 5432 failed: No route to host. Is the server running on that host and accepting TCP/IP connections?
When I connect to online free psql testing server it connects successfully.
Also there are two hosts on the same net as my VM addresses 192.168.1.X, and it fails to connect to them.
Is there anything wrong? Please free to ask questions.
localhost:5432
First of all, if you mean like it listens on127.0.0.1
instead of e.g.0.0.0.0
, then it's not supposed to be accessible from any other hosts?ip r
of the VM. Also, are you sure it's not just the firewall on the servers?default via 192.168.1.1 dev ens33 proto static 192.168.1.0/24 dev ens33 proto kernel scope link src 192.168.1.3
and yeah I checked firewall on both machines it is off