To get ip in j2me

Reply

Join Date: Feb 2007
Posts: 35
Reputation: Venks is an unknown quantity at this point 
Solved Threads: 0
Venks's Avatar
Venks Venks is offline Offline
Light Poster

To get ip in j2me

 
0
  #1
Dec 17th, 2008
Hai Friends,

Iam using gprs connection for my project, i want to send message from pc server to my mobile client by UDP connection,
how can i do? how can i get ip for mobile gprs connection? please help me for this problem
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 33
Reputation: AlbertPi is an unknown quantity at this point 
Solved Threads: 2
AlbertPi AlbertPi is offline Offline
Light Poster

Re: To get ip in j2me

 
0
  #2
Dec 17th, 2008
You mean after successfully establishing a gprs connection, right ?
Are you using Nokia *** or ?

Try the following codes:
1.
ServerSocketConnection scn = (ServerSocketConnection)Connector.open("socket://:1234");
System.out.println(scn.getLocalAddress());
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC