I downloaded the openCF framework and tried the following:

Imports OpenNETCF.Net
Module Module1
Sub Main()
Dim a As OpenNETCF.Net.Adapter
MsgBox(a.CurrentIpAddress)
End Sub
End Module

The result is - An unhandled exception of type
'System.NullReferenceException' occurred in tst-opencf.exe

Any ideas?