Get the IP address from computer name(hostname)

Thanks SurferTim,
I think that i'll try a bit more and if it won't help i'll go for your approach.