I have been trying to make a F5229 Launchpad and CC3000 work like a Belkin Wemo, in the sense that I could use it to switch appliances such as heaters and lights in my house on and off from a remote web site (or iPhone/Android) without the need for a server within my house. My whole project would use about 20 devices.
The problem one immediately faces is getting past the NAT in a domestic router. I have studied subjects such as STUN, TURN & ICE and uPnP and spent rather more time than I should have on failed attempts at UDP Hole punching.
This is clearly possible, since the Wemo can do it (I believe it uses STUN). The questions are how secure and reliable it would be and how to do it.
My current thoughts are that it may be simpler and more secure to have a small "relay server" in ones home network using port forwarding to allow the outside world to have access to it. It could then relay messages to one or more CC3000 based devices behind the router, but this is a clunky solution.
Another solution would be to allow the devices to poll an external web server for instructions, but this would generate a heap of network traffic and be very inelegant.
If all else fails, one could set up static addresses and use port forwarding but, again, a compromise.
I appreciate that the CC3000 is still relatively new, but if anyone has any ideas/thoughts/libraries I would be very interested.