asad2016 wrote:IT should be away that i could acces like normal address in the url (DNS OR IP Address)
You first have to find out, which IP address is assigned to your Router (or PC) from your Provider. If youre PC is connected to the internet directly (without any Router), you simply have to enter that IP in a foreign browser in order to connect to your Apache (Xampp).
If you are connected via a Router, this IP is assigned to your Router instead of your PC. But your PC is part of the LAN, which is created by the Router. In that case you have to establish a so called "Portforwarding" in your Router (most Router support Portforwarding - if your Router does NOT support Portforwarding, you cannot continue and you cannot put your Xampp online), you must configure your Router that all Requests coming on Port 80 are forwarded to the internal LAN IP of your Xampp PC. If you want to use HTTPS protocoll as well, you have to add one more Portforwarding for port 443, again to your internal LAN IP of the Xampp PC.
Finally, again simply enter the external IP (which is given by your Provider) into a foreign browser.
Many providers (in germany ALL providers) do not provide static IPs, that means, your public IP changes every night. Therefore you have to enter another IP everyday on the external browser. As this is quite annoying, you should go for a so called "dynamic dns provider", that gives you the opportunity to have a unique domain which is connected to your dynamically changing IP. One of the very last really free providers is
http://www.noip.comYou should register and get your own domain name there. Many Routers support these free providers, after you registered on noip.com, you should look into to your Router, if it offers access to any Dynamic Services like noip.com. If it does, you must enter your Username and password from noip.com into your Router, then the Router automatically refreshes your noip.com account, each time your public IP changes. If your Router does not support noip.com, you unfortunately have to refresh your IP by yourself directly on
http://www.noip.com every day. You may then use this domain name instead of your public IP in order to access your Xampp PC.
Finally, there are tons of tutorials and videos out there in the WWW about this question, simply enter "access Xampp from internet" into Google.