How do I redirect a domain? - proxy

I have a php file in my PC, I want the app in my iPhone to access this file! like the app should be redirected to PC with that PHP code, anyone know how to do this? with XAMPP?? I don't know anything about how to configure this, I'm a newbie :/

You're 'hosting' the PHP file on XAMPP. All you have to do is type in the local IP (or your public IP if you want to access it from mobile phone internet (no wlan) and ports open) and you're already there.
Start > cmd.exe > ipconfig
There you usually find your local IP and Public IP.
Incase you have a domain: Add a A-Record

Related

Reading laravel terminal output using Laragon

Actual state of art:
I need to expose my laravel app on internal lan, and sometime I need,or I close visual studio by mistake, so I moved the project on laragon, and everything is ok.
Need
During the test we have implemented some error_log() to debug some problems.
Problem
Actually I cannot read the printed error_log() or the http request, cause opening laragon terminal is like to be on the folder with the normal terminal, I cannot read the server running terminal.
What I want?
I would like to use laragon, and get access to the server instance console to read the logged data printed with error_log()
If you are running on Laragon just set your config to point to the public folder of your laravel. Give it the name of sitename.test or whatever. This will write a new line to your hosts file with the 127.0.0.1 IP. Then if you want others to view they will have to change their host file to
your computers ip addy sitename.test
Then open your firewall and let Laragon through on port 80 and port 3306 on your private network.

How to connect from external devices to htdocs folder using local network ip address in Mamp

I want to connect and access the document inside htdocs folder to test my project in a external device.
I google a lot trying to find the solution to this problem and I finally find it by trying it once and again. So I decide to create this post for the one that are struggling to access htdocs folder. Cheers!
Here is the answer:
Enable incoming connection by switching the firewall off. Go to General Preferences. Then Security & Privacy, go to Firewall and switch it off.
Get you ip address. The address that your local network has given you. You can check it by writing "ifconfig" in the terminal. You will find this:
inet 192.XXX.X.XX
Go to your device and type in the URL the following:
192.XXX.X.XX:8888/document.php
Your IP address:Web Server Port/the document full name
You are in htdocs folder now! :)

how to access xampp server from internet using dynamic ip address

I have installed xampp server on my windows 7.
I am connecting internet using HUAWEI Dongle.
I don't have any static IP address.i Want to access my php file from internet example I have connected to internet now I have dynamic IP address like 100.101.73.240 if some one enter 100.101.73.240/home.php in his browser address bar then my home.php page should open in his browser.
What should I do for this give me step by step guide.
Local Ip can't work over the internet. It's your intranet network. If you have dynamic internet IP, then you simply configure the Dynamic DNS service. Which you can configure your Internet Router with the following settings (provided by the Dynamic DNS service providers).
dyn.com
noip.com
dynu.com
many more.
Thanks
If you want to share IP with someone from your local area network:
Go to cmd, run ipconfig command, and find your local IP, which should be like 192.168.xxx.yyy. You can easily share it with no worries it will change each time you reset your network.
If it's someone from external network:
You have no power to share your external IP if you have dynamic one, it will change too often, but still it should work for a short connection sessions. To obtain a stable address you would have to register a domain

Can't access XAMPP from other computers

I have installed xampp on my windows7(64bit). I can view my php website from my own computer but others within the same network can't open no matter they tried my own IP 192.168.x.xx/web folder or 127.0.0.1/web folder.
I did the same thing before in the 32bit win7 and it worked fine. I wonder how I can get it work?
I am pretty new to php and xampp so please give more detail. Really appreciate it!
If you are using windows than all you have to do is to go to Allow an app through Windows Firewall.click on Allow another app select Apache and mark public and private both .Again Allow another app this time select xampp and mark both public and private and is done click apply and exit .
Open cmd by pressing windows button+r write cmd than in cmd write ipconfig find out your ip . than open up your browser write down your ip http://192.168.1.x and you will be on the xampp startup page.if you want to access your local site simply put / infront of your ip e.g http://192.168.1.x/yousite.
Now you are able to access your website in private network computers .
Try running this command and verify that your web server port is listening on all interfaces (0.0.0.0):
netstat -an | find "LISTEN"
It is really common for Tomcat to not listen on 0.0.0.0 until you specifically configure it to do so.
Other than that, verify the port is not being blocked by something.
127.0.0.1 definitely wont work as that is the ip address of the local machine.
Are you perhaps missing a port number in your url, so from another computer try 192.168.x.x:80/index.html or similar
May be your firewall configuration is on, change it, your issue will resolve. I too have the same issue and resolved it through this way.
Change Your Firewall Setting. It would be on So Please off window firewall Setting. I hope so it will be work.

Viewing Mac Localhost on a network PC

I am developing some websites on my Mac (Standard LAMP setup, with PHP5, Using Remy Sharp's LAMP setup instructions). I can see these sites locally by going to (eg http:// apple.dev).
I was just wondering how I view these sites on a connected network PC.
I have tried:
http:// MY-IP-ADDRESS/~MYUSERNAME/apple.dev
But this just returns the file directory structure for the website.
I can see the default webpage by just going to:
http:// MY-IP-ADDRESS/~MYUSERNAME/
Am I doing anything wrong or do I need to do anything else?
I have enabled web sharing
Any thoughts or suggestions appreciated.
It sounds like you have a server alias setup for this site already. In which case the answer is pretty simple. Just edit the hosts file on your pc and enter the ip of your pc together with the server alias in the usual fashion, e.g.
xxx.xxx.xx.xx apple.dev
Where xxx.xxx.xx.xx = your mac's ip address, as found in web sharing.
If this is done, then your pc should find the site when you browse to that alias in its web browser.

Resources