Is it possible to know which ports are restricted by the mobile with J2ME ?

All in the title. Thanks,Pierre.
[46 byte] By [psykrodelika] at [2007-11-27 7:00:50]
# 1

Varies from phone to phone.

I believe it is recommended to use a port between 16001 and 16999 on a J2me app as these are almost always free.

In my opinion the best way to find out what will work and what won't is to create a small app which will try to create an SMS connection on a specified port (specified through something like a textbox) and which will display something indicative if an IOException is thrown during the process of creation.

Most manufacturers usually also have documentation on this on their developer sites...

Chargea at 2007-7-12 18:51:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Thanks but I already know that :P.In fact I want to know if with a MIDlet (using system.getproperty() for example) we can know which ports are reserved on the mobile where this MIDlet is launched.
psykrodelika at 2007-7-12 18:51:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...