wood burning stoves
The moose likes Java Micro Edition and the fly likes How to get server port for SMS ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to get server port for SMS ?" Watch "How to get server port for SMS ?" New topic

How to get server port for SMS ?

Kevin Onik
Ranch Hand

Joined: Sep 10, 2003
Posts: 30
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 ]

"The greatest pleasure in life is doing what people say you cannot do." --Walter Bagehot<p>SCJP 1.4<br />SCWCD 1.3</p>
Johan Karlsson

Joined: Jan 07, 2005
Posts: 26
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
Kevin Onik
Ranch Hand

Joined: Sep 10, 2003
Posts: 30
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

Joined: Feb 18, 2003
Posts: 524
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..

SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
I agree. Here's the link: http://aspose.com/file-tools
subject: How to get server port for SMS ?
It's not a secret anymore!