Is it possible to connect iPad to xampp server over adhoc WITHOUT internet connection? - apache

I can connect my iPad directly to my Windows 7 laptop using a Win7 adhoc connection and the laptop's internal wifi. That much works. (I tried the alternative of connecting via a wireless router, unsuccessfully.)
Now that the connection is made, I need the iPad to access the XAMPP Apache server that's running on the Win 7 laptop.
I run 'ipconfig' on Windows to find the IP address assigned to the laptop, type this into the iPad's Safari browser address bar, and get "Unable to connect to http://www.192.168.2.5 because you are not connected to the internet."
The 'http://www' is inserted by Safari, I did not type that in.
I also tried including the port that Apache is listening on: 192.168.2.5:80 , with the same result.
I do NOT want to connect to the internet at large (I don't have the two wifi cards necessary to do that), but only to the local Apache server on the Win 7 laptop.
Another answer describes doing this with Bluetooth. I do not have Bluetooth available on the laptop.
The iPad is running iOS 7.1.2.
I've tried the usual tricks on the iPad, resetting Network Settings, turning on/off Airport, etc. Still, Safari insists on inserting 'www' in the address and denying the connection.
How do you connect an Ipad2 to a localhost server running on Windows 7 without having a simultaneous internet connection?

Related

Access localhost site on mobile devices within the same local network

Right now, I'm running my site on my Mac OS X locally via Apache.
I'm trying to reproduce a bug that only happen on iPhone Safari. I'm trying to avoid keep pushing the code to the staging server, pull, and then, test on my phone.
Is there a way to access my local site via my phone? via some kind of IP address?
make phone connect to the same WIFI as MAC OSX
run the server on the non-localhost address (LAN DHCP allocated), noted as SRV_IP
access the SRV_IP from your phone

Apache - Can't access xampp server through another device

I have just set up a wi-fi network from my mobile (Android). I have all my files on my desktop computer (192.168.43.212) and want to access localhost over there from my mobile that used for the wi-fi network.
On my desktop I can access localhost through the normal [http://localhost] or [http://192.168.43.212]. Apache is running on port 80 as usual.
But I can't access it on my mobile using [http://192.168.43.212]. My desktop computer runs in Windows 7 and I've turn off the firewall but still not working.
You can use photon browser on the web-stores, but it doesn't work for normal browsers on mobile devices due to their operating system's security.

HoloLens device portal not available

When connecting HoloLens via USB to my computer, the device portal is still not available after setting it up as explained in the install tools page.
All I get in the browser 127.0.0.1:10080 is the generic "unable to connect" page.
Is there any way to know what is failing? What could I check? Any tip will be appreciated!
EDIT: browsers used: Edge, Firefox and Chrome.
EDIT2: Hololens development mode is on.
Connecting over USB requires the PC be running IPoverUSB, which is installed with the Windows 10 SDK. You can verify that it's running by checking the Services tab of Task Manager for IpOverUsbSvc.
FYI, another resolution to this issue may be the USB port you are using.
I initially was using a USB 3 port (which I've used to flash my HoloLens many times) and had the same issues.
On a whim, I switched to an older USB2 port and it's working perfectly now. SO try different USB ports if you are having this issue.

Calling selfhosted WCF service from Windows Phone 8 Emulator

My selfhosted WCF wervice works fine with any browser on the domain, and also with a WinForm client. In a Windows Phone 8 app I can create Service References OK. Trying to consume the service from within the app running in the emulator it causes the System.Net.WebException: The remote server returned an error: NotFound.
What I have done:
allowed URL registration
firewall inbound rule for the specified port
enabled WCF Services, HTTP Activation (Windows Features)
In the Hyper-V settings for the Emulator it lists 4 network adapters: Windows Phone Emulator Internal Switch, Intel...Gigabit Network Connection Virtual Switch and 2 VMware related switches.
Can the presence of VMware cause this problem? (I have stopped the (4) VMware related services.)
What else can I check or do?
After a full day of working on the issue (not knowing anything about Hyper-V didn't help) I (we) worked out the problem:
In this particular, but quite common setup, both Ethernet and Wireless Network Adapters were enabled, and Ethernet ranked above Wireless, as you do to give the cable connection precedence over wireless when both are available.
Even though the Ethernet cable was disconnected at the time the Emulator was started/created, Hyper-V created Ethernet as the only external Network adapter to use. But the because there was no cable, the adapter was physically disabled and the local WCF service (which was running on the wireless network) could not be found.
Disabling the Ethernet (hardware) adapter (Control Panel), then deleting the emulator, and reconstructing it by launching a phone app in VS fixed the connection issue. On inspection the Wireless adapter is then assigned as the external adapter ("Virtual Switch") to use.
Hope that helps someone.

WCF on PocketPC, not connecting to host machine

I'm working with a PocketPC vm for development over here.
I can get the virtual device to connect to the internet, but I can't get it to connect to a web service on my local (host) machine.
I've tried the machine name and my IP address, different ports, but no luck.
Anyone else have this issue?
EDIT: I have an actual device at my machine as well. When docked I don't have this problem with the real device, just the emulated one.
I have not had the specific issue. But, the best way I've found to deal with these issues when using WCF is to enable tracing and see what the error messages are.
If you are connected via ActiveSync, you can connect to the name "ppp_peer".
This name will always resolve to the machine connected via active sync.
Figured it out when I read this article:
http://www.betterthaneveryone.com/archive/2008/08/31/getting-network-access-on-the-windows-mobile-emulator.aspx
The device has to be docked. You need to use the Device Emulator Manager to dock the device. Also note: you can only have one device docked at a given time.
Once the device is docked, you should see the Windows Mobile Device Center display. Find the running device (look for the green arrow), right-click and select Cradle. Remember, only one device can be cradled/docked at a time. If you have a real device that is cradled already, you cannot cradle an emulator.
In Windows Mobile Device Center -> Mobile Device Settings -> Connection Settings: Check "Allow connections to one of the following:" and select DMA in the dropdown.
On the emulator: File->Configure->Network. Make sure a valid network device is selected.
From the emulated OS: Start Menu -> Settings -> Connections -> Connections -> Advanced -> Select Networks. Make both drop-downs My ISP.
That should be it. To test, load Internet Explorer, browse to StackOverflow.com. Next, browse to a web page on your local machine.