I had the same problem and used this: IP.resolve_hostname(str(OS.get_environment("COMPUTERNAME")),1)
(COMPUTERNAME is a windows enviroment variable)
I don't know if this is a good way to get the IP address but it work on windows.
I hope that I could help,
Gamemap