How can I access my localhost project in Mobile using Virtual host with XAMPP - xampp

I have a WordPress Project which I need to test in Mobile. I use XAMPP and accessing the project in my localhost using the following Virtual Host URL "localhost.sacon". It is working fine in the localhost but not in mobile. Followings are the steps I did.
Connected my mobile and local machine in same WIFI network with the IP 192.168.0.104.
When I enter 192.168.0.104 in my mobile, I am able to see the XAMPP default home page.
When I put my project in "htdocs" folder, I am able to access it in mobile by 192.168.0.104/sacon.
But my requirement is to access the Project with Virtual Host.
My virtual host is "localhost.sacon" and it is working fine in my localhost
But virtual host is not accessible in mobile. I tried "192.168.0.104.sacon" but it is not working. What is the solution.
I already read couple of stackoverflow solution but nothing was worked for me and the explanations are seems to be bit difficult. So what is the exact method i need to follow here. I hope a step by step explanation will make sense. It is not only helpfull for me but for others also. It will be a Great Help for me if anyone can fix this with simple explanation. Thank You Very Much in Advance!

Related

how to Accessing localhost (xampp) from another computer over LAN network?

I have a WI-FI & LAN network at office. I have all my files on my desktop computer (192.168.1.2) and want to access local host over there from another computer (192.168.1.8).
My xampp version is v3.2.2 and windows 7 64 bit.
On my desktop I can access localhost through the normal http://localhost. Apache is running on port 80 as usual.
Exactly what do I have to do to achieve this? There is documentation on the net but they either don't work me or are too old and confusing to understand.
Any ideas as to what changes to make it possible? Please give me step by step instructions.
User should have access of your localhost, you can check this by sharing the folder and check on other machine that folder is accessible or not, If it is accessible then that user easily can access your local host by using the http:/IPAddress, If not contact to IT department they will help to achieve this by removing some restriction on network.

Set up a simple go server in a webhost

I wanted to set up a simple go server in a webhost. I acquired a domain mydomain.com and hosted it using Bluehost. Now, going through the Go tutorial, I went through this example http://tour.golang.org/#59 and it works fine on my machine. Now, instead, I want to make the HelloWorldServer work when I call mydomain.com:4000 or some other port.
What I did was ssh to my server at bluehost, install go there, then compile the server and run. But then I try to access mydomain.com:4000 and it is not found. I also tried to change "localhost:4000" to just ":4000". any ideas how to make it work ?
Any help or pointers are appreciated. (some more details: it is a shared-hosting account)
This is due to the firewall on your BlueHost server not having ports (including 4000) open on a shared hosting account, Firewall Port Restrictions
If you want to do some simple (and not so simple) web hosting, why don't you look at Google App Engine

How to Access the website ( webforms ) from local nework using IIS

I made a web site using web forms in webmatrix, the site is working fine in local host.
But I would like access it from the local network using IIS.
Please help me..
Im assuming that IIS supports the code and its working fine when you go to your browser and type localhost. You would have to open up command prompt and type "ipconfig" and get the ipaddress of your local machine. Next you open up that port that you are using in firewall and then go to another computer on the network and type the ip of the computer running the site. Hope this helps anyone else because i know that this is pretty late :)
For that you should first RUN IIS Server in your PC.
To Enable IIS please refer the below link.
http://www.codeproject.com/Tips/365704/Install-IIS-on-Windows-7
And then you should add the Web Application ( Your Application ) to IIS.
To Add your site to IIS Please Refer the below link.
http://www.hosting.com/support/iis7/create-new-sites-in-iis-7/
And also it require web.conf

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.

IIS 7 and ASP.Net MVC issue

This is a bit complex - so here we go.
I am developing a mobile web application using asp.net mvc and I need to test it locally on my iPhone. So far I have the first iteritaion of the site running on my local dev laptop. I created a virtual dir for the site under IIS 7 on the same machine. I deployed the site to that folder from VS2008. I open a browser and entered "" and the site cam up just fine. I am runnig a home network with locked down WIFI and both the laptip and my iPhone are on the network. So now I want to test with the iPhone but the site won't come up when browsing to "". I have another machine that is also on the network and I get this error message when attempting to browse to the site:
"Website (laptopname) is online but isn't responding to connection attempts"
I have a feeling that this has something to do with IIS setting and \ or application pools but have not been able to find anything relavent goolging. Any help appreciated.
There are some possibilities:
iPhone is not able to resolve your laptop by name. Try using the IP address of your computer in the URL instead.
The firewall on the laptop is blocking inbound connections from other machines. Check your firewall.
The IIS Website is configured with a host header localhost so it won't respond to requests to other hostnames. Check the binding for the Web site in the IIS Manager.
To eliminate possible network issues, you can create an ad hoc WiFi network on your PC and connect to that network to test.
Check that Allow Anonymous Access is set for the site
I suspect you are not alone, as I had this exact problem. I developed a small port opener I called "SharpProxy" that may make your local testing much easier.
Overview and instructions:
http://www.codefromjames.com/wordpress/?p=97
It's open source! Get code here: https://github.com/jocull/SharpProxy

Resources