Portforwarding does not work for wampserver localhost using packetriot and ngrok - xampp

I am using Wampserver (windows) for a project development in WordPress, while developing it I need to show the progress to the client frequently. So I found Packetriot and Ngrok tools which can create a tunnel on localhost and make it accessible to anyone over the internet.
After configuring the tunnels on both the software when I try to access it from the provided public URL, I can see the localhost home page of wampserver successfully, but when I try to open the project website (virtual host), it does not open it. It shows 'This site can't be reached".
However i have checked lot of forums and videos on setting up the server using these tools, but unfortunately it is not working out for me to access other pages on the website other than the localhost home page.
I have also configured the port forwarding on my router admin page and have also allowed the port in firewall settings.
Note: I have tried it using different ports ( 80 and 8081 ), but it did not work.

Related

Laravel app running on Homestead - how to access it on a mobile device?

I'm running an app on Laravel Homestead. My OS is Windows 7. The hosts file:
192.168.10.10 myapp.dev
My PC uses the LAN Internet connection.
Now, I would like to be able to access myapp.dev on a mobile device.
I have tried this (1), as well as that (2). None of these worked for me. If I use the php artisan serve approach (link 1), my IPv4 gets rewritten to myapp.dev, and the site cannot be found.
How do I access my Homestead-based app on a phone?
Homestead 5.x
As of Homestead 5.x, ngrok software is included in your homestead environment. You can use the share myapp.dev command to fire off ngrok to listen for myapp.dev. Please refer to the Laravel Homestead documentation (Sharing Your Environment)
Homestead versions without ngrok included
You can change your nginx configuration file to listen on all requests and use your local IP http://yourip:8000 instead of myapp.dev, but the easiest way to archive this is by creating a secure tunnel to your machine with software like ngrok.com
With your local domain myapp.dev you can basically run the following command after you served your webserver:
ngrok http 192.168.10.10:80 -host-header=myapp.dev
ngrok will generate a secure url which is available on your local network, but also publicly so you can share it with your friends/colleagues.
source

How can I access a webpage located inside a VM from the host machine's browser?

I am able to access the link http://localhost/men/tops-men/jackets-men.html successfully from my VM (configured using X2Go client).
IP Address of the VM: 10.146.106.204
I am also able to ping the VM successfully from my host machine (Windows).
The page that I am trying to access is a php page deployed on Apache Web Server.
However I am not able to do so from my Windows host machine.
I tried http://10.146.106.204/men/tops-men/jackets-men.html from my Windows machine but it did not work.
Do I have to configure something on my host machine or on my VM ?
Not sure what I am missing.
On VM check you can view http://10.146.106.204/men/tops-men/jackets-men.html
If not you need to configure the web server to listen on that IP (if you're running IIS this is under "bindings" in the right-hand side panel of IIS Manager).
On Host open a cmd window and check you can ping 10.146.106.204
If not check your firewall settings on the VM.
If neither of these 2 things help then you need to add more information about your setup to the question. Those are 2 very simple things you can do to diagnose 2 basic problems you might be having.
I was finally able to solve the problem based on this SO link: Unable to access magento site from anywhere but localhost
Updated the DB table core_config_data and updated the data by replacing http://localhost with http://ip-of-vm and then restarted the apache web server.

GhostLab website On Mobile Fails To Ping Other Locally Hosted Site Via AJAX

Testing out Ghostlab on mobile presented an issue when the locally hosted page attempts to ping another locally hosted page via AJAX. Normally, GhostLab will rewrite the URL for you, but since it's an AJAX request I'm assuming it's not rewriting it because it's a dynamically generated URL.
Works fine on virtual machines and host machine with modified HOST file. Fails to load AJAX. The proxy server settings are very limited on GhostLab. Has anyone come across this issue and solved it?
The solution is to run another proxy server because you can't really modify the HOST file on iPhones or Androids without a huge headache.
I ended up using Charles Proxy. I remapped the locally hosted URL to which it was making the AJAX call to my local machine and it fixed everything. Here are the instructions:
1) Open Charles
2) (Menu)Tools/Map Remote...
Add the url you are local hosting to remap any traffic going through Charles Proxy to go to your machine See image example:
Do the same to any other subdomains or domains that are locally hosted on your machine and remap them too.
3) On your mobile device, open settings and select your local Wifi Network.
4) Change the proxy to your machine's IP address and relevant PORT.
5) Attempt to access the website and Grant permission via Charles.
This should fix it all.

Access local website via router

a few months ago I've made it using Wamp Server
but now I'm trying to go inside of the local website via router to xampp and wamp server.
wamp ruinning on port 80
xampp on port 81
my local ip is 192.168.1.100
so I've tried to go into
192.168.1.100 and 192.168.1.100:81
From here it works, but from another computer (connected in the same network) cannot find it.
I've set wamp online and in both wamp and xampp set 'allow from all' so what it doens't work?
Also, I'm trying to do it because I want to test something on Node.js
(I know i can do t using 2 tabs or browsers)
When i start node.js server it may run at 127.0.0.1:8000 it would be acessible by 192.168.1.100:8000 ?
Thanks for reading and sorry for bad english.
I am guessing you are using Windows 7? Do you have a firewall enabled? If so follow the steps in the link below to open ports 80 and 81 by setting custom inbound rules.
http://maximumpcguides.com/windows-7/open-a-port-in-windows-7s-firewall/

IIS 7 Access Denied for local IP but not Localhost

I've just started to experience this error. I'm developing MVC apps and using visual studio to deploy to my inetpub/wwwroot directory.
When i publish and hit the site at http://localhost the site works as expected.
When i hit the site using my IP address http://192.168.16.216 i get the following error
Unable to display page It has not been possible to display the page
you requested for the following reason: Access Denied Contact your
system administrator if you continue to experience difficulties.
I get this error on all browsers. I'm running IIS7 on Windows 7.
Any suggestions?
As I pointed out in my comment above:
Using your network IP means you'll be going out and back in again. Is your router configured to allow access to your machine on port 80?
It's likely that your company router isn't allowing access to your machine on port 80.

Resources