×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    4

    is java.net.InetAddress use for midp2.0

    Hi,

    can we use inetaddress for midp2.0? I want to get local ip. when i used socket class as follow
    Code:
    srvsocketconnection = (ServerSocketConnection) Connector.open("socket://:1234"); 
    msgIP = srvsocketconnection.getLocalAddress();
    some java application cant get ip. if i send data after get ip.

    how can get local ip without socket programing?

    Note: Sorry my english.

  2. #2
    Registered User
    Join Date
    Dec 2010
    Posts
    4

    Re: is java.net.InetAddress use for midp2.0

    who can help me?

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: is java.net.InetAddress use for midp2.0

    you can call a distant service, like what's my ip

  4. #4
    Registered User
    Join Date
    Dec 2010
    Posts
    4

    Re: is java.net.InetAddress use for midp2.0

    hım. is a way get local ip with httpconnection method?. can we use inetaddress for midp2.0?

    tnks for answer.

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: is java.net.InetAddress use for midp2.0

    the first method you gave is the most reliable, afaik. what do you need your ip for, anyway?

  6. #6
    Registered User
    Join Date
    Dec 2010
    Posts
    4

    Re: is java.net.InetAddress use for midp2.0

    we want to ip address for e-signature security. software developers says some java application cant get ip before send data with socket programing. is true?

Similar Threads

  1. USSD ON Java MIDP2 s40
    By kevo12 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2010-04-29, 10:25
  2. Cannot find the class file for java.net.InetAddress
    By somanna in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-10-16, 14:09
  3. java.net.BindException: The address is not available
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-01-20, 17:37
  4. InetAddress cannot resolve host on Communicator 9500.
    By PTY_MUC in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-09-29, 10:46
  5. MMS Java Library uses java.net classes
    By walterzcm in forum General Messaging
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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