Outgoing SMS port Settings

Outgoing SMS port Settings SearchSearch
Author Message
Divyang Garg
New member
Username: Div_yankee

Post Number: 1
Registered: 02-2009
Posted on Friday, February 20, 2009 - 09:32 am:   

I am developing a Java Application, that sends an SMS. I just wanted to know the Port No. used by the different Handset Manufacturers. For example Nokia uses Port 50000.

wanted the Port No. for Samsung, Motorola, LG and Chinese Handsets.

Thanks.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 493
Registered: 08-2008
Posted on Friday, February 20, 2009 - 10:47 pm:   

Hi,

I'm not sure I understand your question.

The port number should be of your choosing, unless I am not understanding your question.

--
Des
NowSMS Support
Divyang Garg
New member
Username: Div_yankee

Post Number: 2
Registered: 02-2009
Posted on Saturday, February 21, 2009 - 07:16 am:   

Hi,

Thanks for your response. Just tried to explain my problem.

When we send a message through the Java Midlet, it basically goes through a Port, as a kind of URL. Now as far as I can understand, there are restrictions on different Ports, and their usage for different purposes. For example, the Port No. mentioned by Nokia is 50000, from all Nokai devices I am able to send SMS. When i try the same application on a Samsung Mobile, everything works fine, but the Message does not go.

I have tried my hands on a Sony Ericsson, I am able to send the SMS.

However, I am unable to send a message from Samsung, LG and Motorola, Fly and other chinese handsets.

I wanted to know which port no. will be suitable to use on these handsets to be able to send the message through my Java Application.

Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 502
Registered: 08-2008
Posted on Sunday, February 22, 2009 - 11:17 pm:   

Hi,

For sending SMS, I don't think the port number matters. 50000 is just frequently used in examples.

The port number becomes important if you need to receive SMS messages in your application, because you can only receive them if they have been addressed to the port number that you are listening on.

JSR-120 explains that the following ports are restricted:


quote:

A.6.0 Restrictions on Port Numbers for SMS Messages
For security reasons, Java applications are not allowed to send SMS messages to the port numbers listed in
Table 4. Implementations MUST throw a SecurityException in the MessageConnection.send()
method if an application tries to send a message to any of these port numbers.
Table 4: Port Numbers Restricted to SMS Messages
Port number Description
2805 WAP WTA secure connection-less session service
2923 WAP WTA secure session service
2948 WAP Push connectionless session service (client side)
2949 WAP Push secure connectionless session service (client side)
5502 Service Card reader
5503 Internet access configuration reader
5508 Dynamic Menu Control Protocol
5511 Message Access Protocol
5512 Simple Email Notification
9200 WAP connectionless session service
9201 WAP session service
9202 WAP secure connectionless session service
9203 WAP secure session service
9207 WAP vCal Secure
49996 SyncML OTA configuration
49999 WAP OTA configuration




Maybe there is some other problem on the other hones. Verify that you can send SMS from the built-in SMS client in the phone.

--
Des
NowSMS Support