In .NET Compact Framework a device can have several IP Addresses. I want to find one that is NOT coming from the Cellular connection. Goal is for WiFi or Ethernet connection.
Is there a way to do this?
Seems like State and Notification Broker would have a way to do this but didn't see a way.
Nope, you'll have to do it manually.
Obviously there's not an easy way for you to know which IPs belong to cell or not. The easiest way would be to grab the "ISP" IP database from maxmind.com - http://www.maxmind.com/app/isp - which will give you the name of the ISP for any IP address (well, most IP addresses). You would then just setup a regular expression matching keywords like "sprint", "verizon wireless", "cellular", etc, to determine if it's a cell phone IP or not.
Not the prettiest of funnest solution but I'm not aware of a better way.