Search code examples
databaseazureipv6whitelist

how should I whitelist an ipv6 in azure db


I have a PostgreSQL DB in azure and when I want to whitelist my IP address I get the error:

"IP address must be valid IP v4"

. But I have ipv6 address.Here is the image


Solution

  • As the error message said "IP address must be valid ip v4 address", you can not set it with ip v6 address.

    You can run this command in you CMD window to get you IvP4 address:

    ipconfig /all
    

    For example: enter image description here

    Fore details, you also can reference this document: Create and manage firewall rules for Azure Database for PostgreSQL - Single Server using the Azure portal.

    Hope this helps.