×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2010
    Location
    India
    Posts
    3

    Server - Client Program

    Hi........
    I develop applicaton to retrive mySql Data in my j2me application, using http protocal
    it work perfactly but when my midlet deploy on mobile which url passing my application.
    plz help me

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Server - Client Program

    Quote Originally Posted by tanajikadam View Post
    Hi........
    I develop applicaton to retrive mySql Data in my j2me application, using http protocal
    it work perfactly but when my midlet deploy on mobile which url passing my application.
    plz help me
    What I understand from your email is this - that you have developed a J2me application which retrieve data from mySql database using http. You have tested it on the emulator, but you don't know which you need to connect when trying from mobile device.

    I feel, you must have created the server to serve your midlet on your local machine - and hence using localhost to access it over http via emulator running on the same machine.
    Now if you want to access it from mobile phone over GPRS, you need to deploy your server script and mySQL database on some server that is accessable on some public IP from ourside world over internet. Then use this public IP of your server in your midlet to access it from phone.

    If your device is wi-fi enabled, you can connect it to the same LAN (local area network) in which your machine is also connected where you have deployed your server.

    Now on your server system, check IPconfig of your system and you will get the IP allocated to lancard of your PC by your Wi-fi router,
    you can use this IP from your Midlet using wi-fi enables mobile phone and wi-fi access point instead of GPRS.
    Thanks,
    Ekta

Similar Threads

  1. Running bluetooth Server and Client program between PC and mobile
    By doitifucan in forum Mobile Java General
    Replies: 2
    Last Post: 2009-11-26, 12:22
  2. How Do I Write A Server Client Program in Symbian C++
    By phuawl in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2009-04-05, 16:57
  3. how to write a client-server program
    By tlr in forum Symbian
    Replies: 7
    Last Post: 2009-02-11, 11:33
  4. Client and Server Program
    By Ravikumar in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-09-18, 14:41
  5. Simple Server/Client Socket program
    By mottaisami in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-09-08, 21:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×