I am trying to create an OTP android application. For doing the same, I have created a wampserver with phpmyadmin. I have been trying the access my local server with my android application but I am not able to connect. I tried using POSTMAN extension, the server works fine. For sending message I have integrated with website MSG91.
Here is my config.php
<?php
/**
* Database configuration
*/
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_HOST', 'localhost');
define('DB_NAME', 'android_sms');
/**
* MSG91 configuration
*/
define('MSG91_AUTH_KEY', "105265ALB2xj3uLr856c50090");
// sender id should 6 character long
define('MSG91_SENDER_ID', 'ANHIVE');
define('USER_CREATED_SUCCESSFULLY', 0);
define('USER_CREATE_FAILED', 1);
define('USER_ALREADY_EXISTED', 2);
?>
In my application I am trying to send name, email & mobile details to server which in turn sends an OTP to the mentioned mobile number. I am accessing the server in mobile using **
where following is my Ip address and request_sms.php is the file for sms request. While I worked with POSTMAN extension, I am able to send email,name and mobile to the same server.
I am confused at the moment about what should I do next to solve the issue. I am stuck with something silly and I would be deeply obliged if anyone could help me with the issue.