Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get server port for SMS ?

 
Kevin Onik
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends.
How can I get SMS port , to use in my App ? (Sorry if the quastion is dummy !!! I'm new to J2ME )
I mean I want to recieve SMS(s) comming from a number but I don'tknow in which port should I listen for it???

Is it possible to listen for a specific number on any port ?
[ October 05, 2006: Message edited by: Kamyar Onikzeh ]
 
Johan Karlsson
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could invent your own port number. However, there is a list of restricted ports that is reserved for the system. Take a look in Appendix A.6.0 of WMA (JSR-205) for the list of reserved port numbers.

Best Regards
Johan
 
Kevin Onik
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply ...
I know that I can invent a port, but my problem is I don't know the sender on which port is sending the message ! on which port shold I listen for it? for example if I listen on port 1234 is it OK? the sender is sending sms by his/her regular phone ( not from any j2me app ) so what can I do to recive the SMS ?
thanks again
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Well if you are trying to get the sms to the J2ME application from the default sms application, I don't think it is possible, cause to register your application to listen to incoming sms you need to specify a port. Hope this helps.. Regards..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic