• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get server port for SMS ?

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
reply
    Bookmark Topic Watch Topic
  • New Topic