• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Saloon Keeper
Posts: 28469
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
straws are for suckers. tiny ads are for attractive people.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic