I'm writing a MIDlet that listens for incoming sms messages. It is listening on port 50000. When I send a sms message from a MIDlet I created that sends a sms message using port 50000 it receives it no problem. But if I send a sms message from a mobile not using this MIDlet then it won't receive it. I think this is because normal sms message aren't sent with a port number or I'm using the wrong one. How can you interept with port to listen for or what port do all sms message use
"Portless" SMS message is never delivered to the Java runtime. It is always intercepted by the device's native SMS inbox. If your device support accessing the inbox from Java (e.g., JSR 75 or proprietary API), you can get the message by monitoring the native inbox.