Configuring private and public IP addresses