I'm trying to connect from one machine to the other (for Postgres), and I'm confused about how to configure my IP address, both from a allow connections from IP address X
and from a connect to machine A on IP address X
standpoint, assuming there could be a difference.
If I use ifconfig
, the output says my bcast
is 10.0.2.255
and inet addr
is 10.0.2.15
. A related query on this subject pertains to the selected answer to this question, wherein the use of /24
(24 bit IP) in the actual IP address confuses me. How/when should /24
be used when specifying an IP address?