Possible Duplicate:
How to check for an active Internet Connection on iPhone SDK?
I am wondering if there is any way to programatically determine whether or not the iphone is actively sharing it's internet connection, either via usb, bluetooth or wifi.
I am making a web interface for my app and would like to know this so i can display the correct ip address.
Many thanks in advance :)