Originally Posted by SmartAlx
Ok, so it's not our iPhone's IP Address, it's connections address. Our iPhones don't have static IPs. I understand. Every time you need to use your iPhone's IP, you have to check again. Every single time, because it's going to be different from the last time you used the phone's IP address.
In the scope of the OP you can use a static IP. I use a static (private/NAT'd) IP on the WLANs in my home and at work--the places where I'm most likely to need access to my iPhone via a LAN/WLAN. This way I don't need to keep updating my SSH setting and whatnot.
I also run Apache on my iPhone to serve up locally-stored files to either my iPhone or another machine on the same WLAN (disabled when not used).
Now how do you find out the IP address if you are connected via EDGE instead of wifi?
Doesn't really matter as you can't access the iPhone via AT&T EDGE like you can on your on WiFi network. You don't get a valid public IP via EDGE, so there is no way to access the iPhone directly via IP, nor is there anyway to get through via the public IP (no way to forward ports).
IIRC for a price AT&T will let you buy either dynamic public IPs or static IPs. But these are business-class services and AFAIK you can't use an iPhone on those types of AT&T accounts.
BTW: the iPhone actually gets two IPs via EDGE: one is used for your 'Net access and the other--only obtained on demand--is used for visual voicemail.
--
Mike