Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
10-08-2008 07:30 AM
Not really my area, but here is a quick answer. Hopefully someone else will provide a fuller answer later.
Unless you are connecting wirelessly, which I don't think is supported in OS 4.2, you do not have a network IP Address or Host Name. All your IP Traffic is tunneled to you via what is effectively a NAT box or proxy service - either provided by carrier for direct TCP, or via the MDS for BES/MDS connection.
10-08-2008 08:46 AM
You can always have a server report it back to you but more directly
SocketConnection.getLocalAddress() is supposed to work but I've never tried it.
It further claims,
"The local hostname (if available) can be accessed from System.getProperty("microedition.hostname")
If you initiate a connection, the peer can reply to whatever IP is advertised but
it would be nice to find a general means, even if carrier specific, of fixed originated
connection addressing. If you do find locally available interesting hostnames, please post some here and I'll try
to hit you from my desktop.
If you just want to talk to yourself, usually 127.0.0.1 will work.
I don't see anything in RIM class list that is obviously similar to InetAddress
10-08-2008 09:51 AM