In my Android application, I wanna be able to access the wamp server files via the PC name (hostname) not PC local IP address, Is it that possible? cause the user need to change the local IP address in Android app. each time needs to update or get data from MySQL database which annoying thing!
// url to get all items list
private static String url_all_items="http://Local IP Address/android_connect/test.php";
But what I need to be able to send PC name not local IP address as:
// URL to get all items list
private static String url_all_items="http://PC Name/android_connect/test.php";
Actually, I tried to send the PC name instead of Local IP address but this does not work, I tried many solutions, In wamp server configurations, on hosts on windows file, etc. BUT also this not work! Is there any additional configurations to be able to send PC name via the android app instead off IP address?! although when I send local IP address it works well!
In sum, Is there any way that I can access the WAMP server using the PC name instead of the local IP address?
any help at all would be greatly appreciated.