Connect to website via mobile device - apache

I have create a website in php that runs on apache.
I have copied over the project folder to the www folder in WAMP and created an alias for it.
I have an active wifi connection but want to host the site from my laptop to be accessed on mobile devices. So I created a hotspot using the following command in Admin CMD:
netsh wlan set hostednetwork mode=allow ssid=NetworkName key=NetPassword
netsh wlan start hostednetwork
This creates a Microsoft Hosted Network Virtual Adapter. In adapter settings, I went to properties on my Wifi connection and allowed the created hotspot to have internet access.
My phone is now connected to the created network, however, when I try to access the website, Chrome on my device says that the web page is not available.
I used mypcname:8080/alias/ to connect to the website.
What could I be doing wrong and how can I fix this?
Thanks

have you tried adding http:// to the front, as your webserver is not on the http default port you need to tell the browser what protocol to use

Related

Remote SSH not workin outside local network

I use the Blink shell on my iPad to connect to Jupyter on my Mac. The connection works perfectly while on the same network, but it either returns "Network is down" or "Connect timeout."
The app has all the permissions required and so does the Mac.
I set the Mac as a host in two ways: using the ip address shown in System Preferences and once from https://www.whatismyip.com/my-ip-information/.
Anyoke know how to make the connection work remotely?
Information is not clear, I'm assuming your Mac sits behind an Internet router (NAT).
You can either set up a port forward (e.g. 60022 -> $mac_ip_address:22) from your internet router to the Mac or put the Mac in DMZ (which is not recommended)

Connecting Vagrant VM to LAN

I am running Vagrant and VirtualBox on Ubuntu 14.04. My web app is built with Laravel and uses Homestead.
The application makes a web service call to a machine on my local area network. I can successfully reach the server from my OS web browser.
However, my web application cannot access this web service as it does not appear to be sharing my local network settings.
Based on my Google searches I have tried changing the Network settings in VirtualBox under the "Attached To" setting. Changing Adapter 1 to Bridged Adapter. However, this did not work.
Is there a way to allow my VM to communicate with a web service on my LAN?
aaronfarr,
I have as host Win7_64 with VirtualBox and as VM an openSuse.
With network configured like in the below picture and also inside VM the same proxy settings like on host, I can do same things both on VM and host machine.

What is the way to access my website on Apache server computer throw internet from anther pc

I am new on computer networking. I install Apache server on my Ubuntu desktop computer. And i made a website on this PC. When i connect my PC With internet using a dial-up (Mobile Broadband) modem then i find my public IP or IPv4 address on my connection status. When i type this IP address on my PC browser it runs my web-app or website. But when i use the same IP address on my another computer that can't open my website. I also try IIS server with windows server and windows desktop. My public IP work only my PC but not other PC. Can anyone tell me what is the way to connect my PC or Server with internet and people can access my web-app from internet.
Did you try ping? If you cannot reach the server using that method, your connection problem has nothing to do with the web server. That's a start :-)

Mobile Web App URL does not match Worklight Development Server host name (IP)

Using Worklight Studio 6.1.0.1 and Eclipse Kepler on Windows 7, I am seeing an inconsistency with the Worklight Development Server host IP. I have changed the host name from localhost to the IP address I want to use. That IP address is being used when I open the Worklight Console. However, my application includes a Mobile Web application and when I click its "Get App URL" link in the Worklight Console it displays a link using a different IP address. I have several network adapters that have IP addresses - my wired LAN adapter (which has the IP I want to use), my VPN adapter and an adapter configured by VirtualBox. If I am connected to the VPN, the app URL uses the IP address for the VPN adapter. If I am not connected to the VPN, the app URL uses the IP address for the VirtualBox adapter (which is a 169.254.x.x address). In neither case does it use the IP address for my wired adapter. I have modified the Windows Network Connections Advanced Settings so that the wired adapter takes precedence over the VPN adapter which takes precedence over the VirtualBox adapter.
Is there anything I can do to fix this? This makes the app URL difficult to use since my device cannot access either of those IP addresses. The best I can do is scan the QR code then manually change the IP address on my device.
To control the URL used for the Mobile Web envrionment's "Get App URL" in preview:
Open your-project\server\conf\worklight.properties
Uncomment the publicWorkLightHostname property
Provide a host or IP address
Re-deploy the application
Load Worklight Console and click on "Get App URL"
The URL should now point to the address from step 3 above.

How to access localhost websites through http request from blackberry simulator?

I am developing a blackberry application and i wanted to access the websites from my localhost( local machine). I am running the application on blackberry simulator 8350.
From my code i can browse request any website from internet and i am getting the response.
When i am trying to give the url as localhost:8080/portal/index.php, its displaying me a erro message
HTTP Error 404
description The requested resource (/portal/index.php) is not available.
I am running my apache webserver on port 8080 over windows.
How can i access my local machine website from blackberry simulator?
Please help and guide me.
Thanks
SIA
localhost always points to the machine on which the DNS resolution is performed. In your case that would be the BlackBerry simulator.
To get the simulator to send HTTP request to your dev machine, you need to specify the DNS name or the IP address of that machine. The exact name depends on what your the network configuration of the simulator and your local network is.
The problem is solved.
On My local machine i was running apache on port 8080 and MDS Service was running and binding on the same port.
Simply by changing the port for Apache on my local machine helped me to connect to my local machine and internet from Blackberry Simulator.
#Franci, thanks for your idea.