Converts a binary IP address to string format. This is the reverse of INET6_ATON().
VARCHARDiperbarui: 13 Jun 2026INET6_NTOA(binary_ip)An IP address in binary format
1 SELECT INET6_NTOA(INET6_ATON('192.168.1.1')) AS ip_str;
Round-trip conversion of an IPv4 address.
1 SELECT INET6_NTOA(client_ip) AS ip_address 2 FROM connections;
Displays stored IP addresses in readable format.
1 SELECT 2 INET6_NTOA(ip) AS ip_str, 3 CASE WHEN LENGTH(ip) = 4 THEN 'IPv4' ELSE 'IPv6' END AS ip_type 4 FROM ips;
Detects the IP version from the binary length.
Sudah paham INET6_NTOA? Latih langsung di browser
Latihan interaktif, langsung di browser.