get ip?

Blitz3D Forums/Blitz3D Beginners Area/get ip?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

yeh it is possible
Very helpful. :/

RXArt - this code is taken from the blitz documentation for the HostIP command:
; First call CountHostIPs (blank infers the local machine) 
n = CountHostIPs("") 
; n now contains the total number of known host machines. 

; Obtain the internal id for the IP address 
ip = HostIP(1) 

; Convert it to human readable IP address 
ipaddress$ = DottedIP$(ip) 

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

WaitKey() 

End