×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Moratuwa, Sri Lanka
    Posts
    86

    Socket Connection over 3G

    Hi All,

    Is it possible to get the IP address assigned to the phone when it surfs Internet via a 3G network ?

    If it has an assigned IP address when connected to a 3G network, is it possible to establish a socket connection with another 3G connected phone over a 3G network ?

    Regards,
    Primal

  2. #2
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Socket Connection over 3G

    you can use RSocket::LocalName() for getting local IP and Port and you can use RSocket::RemoteName() for getting the remote host IP and Port

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,691

    Re: Socket Connection over 3G

    Quote Originally Posted by primal View Post
    Is it possible to get the IP address assigned to the phone when it surfs Internet via a 3G network ?
    If your RSocket is connected, LocalName gives your address, as Vasant21 says. However if you do not have any connected RSocket, you should enumerate interfaces, check Madsum's post in http://discussion.forum.nokia.com/fo...ad.php?t=54226 or in the Wiki http://wiki.forum.nokia.com/index.ph...eviceIpAddress
    If you search for RConnection in the Wiki, you will find other interesting entries - like "Using an already active connection" or "How can I create an Internet connection without prompting a dialog?".
    If it has an assigned IP address when connected to a 3G network, is it possible to establish a socket connection with another 3G connected phone over a 3G network ?
    It highly depends on your network operator, the general answer is "No, it is not possible". Especially if the two devices belong to different operators.

Similar Threads

  1. Does Nokia 6630 supports Socket Connection?
    By kishorekadiri in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-02-21, 05:20
  2. Unable to do a socket connection
    By PriyankaChaurishia123 in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-02-13, 17:53
  3. Socket problem
    By defragger in forum Symbian
    Replies: 0
    Last Post: 2005-08-25, 08:16
  4. socket connection problem
    By bhatti81 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-08, 14:43
  5. PC Sync with 6310i and Socket BT Connection Kit
    By sami_laiho in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-09-17, 05:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×