convertions network b3d-bmax

BlitzMax Forums/BlitzMax Programming/convertions network b3d-bmax

Aha!

Local hn$ = getenv_("hostname")
Local ip_array:Int[]=HostIps(hn)
ip:Int = HostIp(hn)

ipaddress$ = DottedIP$(ip)

Print "Dotted IP Test"
Print "=============="
Print "Internal Host IP ID:" + ip
Print "Dotted IP Address:" + ipaddress$
Print ""
Print "Press any key to continue"

WaitKey()


So blitz can find out the hostname without the user having to type it in manually! Cool. :)