In private networks, it is common to use private IP addresses. These addresses are not reachable publicly, as they are translated by routers within the private network. For this reason, it may be tempting to use public IP addresses to ensure better connectivity and accessibility. However, this is not a good practice as it can lead to potential security risks.
When public IP addresses are used in private networks, they can be discovered by third parties who can then misuse them to access or attack the network. Additionally, using public IP addresses can also lead to conflicts with other networks that use the same addresses.
Therefore, private IP addresses should be used in private networks to ensure the security and integrity of the network. If accessibility is an issue, Virtual Private Networks (VPNs) or other technologies can be used to enable a secure and effective connection. It is always advisable to use best practices in network security to avoid unwanted access or disruptions.