URL for xampp localhost

  • Replies:10
  • Answered
Linu S.
  • Forum posts: 77

Aug 17, 2016, 1:31:36 PM via Website

How to find the url of localhost to submit data to database from form??:?

Reply
1 Pixel Army
  • Forum posts: 16

Aug 25, 2016, 12:12:36 PM via Website

If you're running Apache, you'll find it in https.conf configuration file. Default HTTP port is 80.

damponting44Linu S.

Reply
Linu S.
  • Forum posts: 77

Aug 25, 2016, 2:48:28 PM via Website

Thnx for the reply..

But what is the url, that enter in the java code???

damponting44

Reply
1 Pixel Army
  • Forum posts: 16

Aug 26, 2016, 2:03:14 PM via Website

are you trying to access from your android device to localhost?

damponting44Linu S.

Reply
Linu S.
  • Forum posts: 77

Aug 26, 2016, 2:13:31 PM via Website

Actually, I'm developing a registration form in android using android studio in windows and I have to
add insert the user data to xampp mysql database..

— modified on Aug 26, 2016, 2:16:56 PM

damponting44

Reply
1 Pixel Army
  • Forum posts: 16

Aug 26, 2016, 2:15:50 PM via Website

Then you need your public IP, or I think it can work pointing to http://127.0.0.1:80

damponting44

Reply
Linu S.
  • Forum posts: 77

Aug 26, 2016, 2:17:15 PM via Website

Actually, I'm developing a registration form in android using android studio in windows and I have to
add insert the user data to xampp mysql database..

Reply
1 Pixel Army
  • Forum posts: 16

Aug 29, 2016, 8:20:41 AM via Website

Then, you'll have to code the server part (in PHP for example), in order to catch the POST request sent from your Android app.

It'll go like:
- Your Android app posts registration data to your server
- Your server (a PHP app), receives the data and save it to your database (if you're using XAMPP probably it's a MySQL)

Linu S.

Reply
Linu S.
  • Forum posts: 77

Aug 29, 2016, 8:37:25 AM via Website

Ok... using the php script I can add data to the database.. But when the I think I have problem with the communication between android studio and php script. I think it may be the url for localhost specified in the javacode..:'(

Reply
damponting44
  • Forum posts: 70

Oct 6, 2016, 2:01:37 PM via Website

In case you're running Apache, you'll see it in https.conf design document. Default HTTP port is 80.

Reply
Linu S.
  • Forum posts: 77

Oct 6, 2016, 2:38:40 PM via Website

Yeah.. I got the answer. . my port was 443: and its working....

Reply