ipaddress

[ipaddress] displays the ip address of the remote computer expanded to 3 digits per segment.

Alternatively, [realip] displays the ip address without expanding to 3 digits per segment of the remote computer.
Using [ipaddress] in a template will display the ip address of the remote computer that the visitor is using to view the site. All sections of the IP address are expanded to 3 digits, so that 207.67.2.14 will display as 207.067.002.014. This helps make partial comparisons inside [showif] tags work more easily.

Example WebDNA code:
[ipaddress] 
Results: 180.075.030.116 (example)