wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark ""PACKET DATA NOT SUBSCRIBED" error  when using J2ME sockets  (GPRS)" Watch ""PACKET DATA NOT SUBSCRIBED" error  when using J2ME sockets  (GPRS)" New topic
Author

"PACKET DATA NOT SUBSCRIBED" error when using J2ME sockets (GPRS)

vp pan
Greenhorn

Joined: Dec 02, 2008
Posts: 8
i am using NOKIA 6300 mobile

i have coded an application in J2ME which establishes a socket
connection to my PC USING GPRS and then transfers some data


THE APPLICATION WORKED FINE IN THE EMUALTOR

BUT ON MY MOBILE WHEN I ENTERED MY PC IP AND PORT NO
(properly forwarded)

it said PACKET DATA NOT SUBSCRIBED why am i getting this error
please help me

I AM USING VODAFONE GPRS , INDIA
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
Sounds like you may not have GPRS enabled or configured correctly. Have you used GPRS, browsed the web, from this device before?

About the IP forwarding, are you saying that a) you have a PC in a DMZ (or not behind a firewall) with a public IP or b) you have a public IP of a router (or gateway) that port forwards to a PC on a provate network?


Rashid Mayes
http://www.hostj2me.com/ - http://www.worlddeveloper.org/
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
which establishes a socket
connection to my PC USING GPRS


This I really say would not be possible, since a real mobile can access only IP/Locations etc which are accessible in the internet.

Your PC in all probability contains private IP and not a Public IP and hence it will not be accessible from the real device.

You could access from emulator because the webserver is accessible to your PC.

More over "Data Packet connection not found" error is due to unavailability of GPRS connection in your mobile or wrongly configured info. Do check both.

Cheers!!!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16094
    
  21

Actually, it sounds like the device hasn't subscribed to Internet service. That's usually an additional fee above what you pay for voice service.


Customer surveys are for companies who didn't pay proper attention to begin with.
vp pan
Greenhorn

Joined: Dec 02, 2008
Posts: 8
THANKS FOR THE RESPONSE
-----------------------
ABOUT THE PC

well i have a ROUTER WITH A PUBLIC IP and PC with a PRIVATE IP

so i have forwarded port no 7000 on the ROUTER so that all communication
coming on port no 7000 of the router are sent to my PC(internal IP)
on port 7000 of the PC
NO PROBLEM WITH THE PC i have built many network application before


-----------
ABOUT THE GPRS

well i have NOKIA 6300 mobile which has VODAFONE FREE GPRS

well i can browse any site on the web with the in- built BROWSER

but my APPLICATION refuses to connect it says "PACKET DATA UNSUBSCRIBED"

so how to configure this PACKET DATA THING
bikash singhal
Greenhorn

Joined: Jan 22, 2009
Posts: 1
dude can you send me the code ...
actully i m new to j2me
n i m trying to built a application
n so i hav to transfer data from mobile to the pc(server)
so need to establish a http connection through GPRS N send the data in xml format
n i just cant figure out how to carry the things

thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "PACKET DATA NOT SUBSCRIBED" error when using J2ME sockets (GPRS)