Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vp pan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Srikanth Nutigattu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vp pan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic