Access to XAMPP from Bluestacks - xampp

How can I open my localhost (in Windows 8 with XAMPP) webpage, from a browser installed in Bluestacks App Player?
Thank you

Type Win+R (To open Run)
Open cmd
type ipconfig
You will get IP address in Ipv4 Address field.
Note: The IP will reset on connection reset/restart
OR
You can access localhost from Bluestacks by 10.0.2.2

use your local ip ex:192.168.1.101

Follow the tutorial on this link: HOW TO ACCESS TO XAMPP FROM BLUESTACKS.
It will guide you explicitly on how to install looback adapter on Windows and configure your IP.
Step 1: Install Microsoft Loopback Adapter in Network Connection Manager
To install the Loopback adapter in Windows Vista, 7, 8, Server 2008 or Server 2012:
Click Start, then type cmd in the search box.
When cmd.exe appears, right-click it and choose Run as administrator.
In the command prompt, type hdwwiz.exe and press Enter.
Click Next.
Select Install the hardware that I manually select from a list (Advanced), then click Next.
Select Network adapters, then click Next.
Select Microsoft as the manufacturer, select Microsoft Loopback Adapter as the adapter, then click Next.
Select Next to confirm the installation.
Select Finish to complete the installation.
To configure the newly created adapter:
Click Start > Control Panel > Network Connections.
Select the newly created connection (named Local Area Connection #, where # is its order number).
Right-click on the selected connection and choose Properties from the menu.
Confirm that Microsoft Loopback Adapter or Microsoft Loopback Adapter # is displayed in the Connect Using: field.
If it is not, return to step 2 and retry properties for another adapter.
Deselect everything except Internet Protocol (TCP/IP).
Select Internet Protocol (TCP/IP), and click Properties to open Internet Protocol (TCP/IP) Properties.
Select Use the following IP address. Fill in the IP address and Subnet mask fields.
Example: 192.168.1.10, 255.255.255.0
Click Advanced to open Advanced TCP/IP Settings.
Switch to WINS and select Disable NetBIOS over TCP/IP.
Click OK to close Advanced TCP/IP Settings.
Click OK to close the Internet Protocol (TCP/IP) Properties.
(Windows XP only) Deselect Notify me when this connection has limited or no connectivity to remove the connection warning icon from the system notification area.
Click OK to close the connection properties.
You will find screenshots in the tutorial from the above mentioned link. It worked for me sure it helps.

Install windows loopback adapter as a virtual ethernt. Set the IP addrs.

Related

How to change the webservers ip address for a specific website in firefox?

for webdev purposes, especially in the phase where websites gets moved from one to another server it's nice to be able to keep the website as is on the old host and setup the system with the production domain on the new host. For this it's nice to change the ip resolution for my own computer for the specific domain to the new webervers ip address.
Up until now that worked by editing the hosts file on Windows 10 or to use a small external dns service like a pi-hole. However that doesn't seem to work anymore. Is there any nice plugin with which I can step into the dns resolution of firefox to provide a new ip address when a specific domain is requested?
You can turn off DNS-over-HTTPS and revert to traditional DNS lookup:
Manually enabling and disabling DNS-over-HTTPS
You can enable or disable DoH in your Firefox connection settings:
In the Menu bar at the top of the screen, click Firefox and select Preferences.
In the General panel, scroll down to Network Settings and click the Settings… button.
In the dialog box that opens, scroll down to Enable DNS over HTTPS and select "Off"
Click OK to save your changes and close the box.

I can't sign in to microsoft using a public Wi-Fi

I have connected to public Wi-Fi that probably blocks me from some sites. I installed a vpn that enables me access those blocked website but I still can't sign in to Microsoft.
I recently installed a new Windows 10, when I downloaded Visual Studio web Installer, it wasn't installing because it couldn't download the files using the public wifi, while with the same wifi, I downloaded and installed Visual Studio onthe previous Windows 10 that I was using.
I dont know if the problem is from the new Windows 10 or the WiFi's firewall rules have been elavated.
You can try installing it with open DNS.
For that, open your CMD, type ipconfig/all
there, look for your ipv4 address, default gateway and subnet and note it.
Now go to your Control Panel -> Network and Sharing -> Select the network/wifi you're connected to,
enter image description here
Click on properties, look for the ipv4 checkbox and click on it, then advance.
There you need to select the option to manually enter ip address. Now add that IP address, default gateway, and subnet mask you noted before.
Add DNS manually and set values to : 8.8.8.8 and 8.8.4.4.
Enjoy surfing the net!

genymotion virtual device missing IP

everytime i try to start my virtual device in Genymotion, i get the error that there is no IP for the device i'm trying to start. I opened the Oracle VMBox, set an IP but it still gives me the same error.
I'm using windows 10, the Genymotion version is 2.6.0, and the device i'm trying to start is Nexus 5 5.1.0 android, and my Oracle VMBox version is Version 5.0.20 r106931.
Open Oracle VM VirtualBox:
Click Settings >> System
Now set Base memory to 1024MB from motherboard tab. Click OK.
To solve IP address conflict,
Goto File >> Preferences >> Network
select Host-only Networks tab.
If you don’t have any adapter defined, Genymotion will create it when you try to start the virtual machine.
If you have an adapter,
Click on Edit icon then a new window will be open. In the Adapter tab, set:
IPv4 Address: 192.168.56.1 and
IPv4 Network Mask: 255.255.255.0
Now select DHCP server. Ensure “ Enable Server ” is checked. Set the following configuration:
Server Address : 192.168.56.100
Server Mask: 255.255.255.0
Lower Address Bound: 192.168.56.101
Upper Address Bound : 192.168.56.254
Click OK.
Now start your Virtual Device.
http://androidcodex.net/unable-to-start-the-virtual-device-genymotion/
CHECK
Ensure that just one virtual adapter is enabled in Network Connections :
Control Panel > Network and Internet > Network Connections
Right click mouse > properties or double click on your enabled VirtualBox Host-Only Network adapter in Network Connections
Enable the Checkbox for VirtualBox Bridged Networking Driver
Click Internet Protocol Version 4 (TCP/IPV4) then click properties button
Tick Use the following IP address
IP address: 192.168.56.1
Subnet Mask: 255.255.255.0
Leave other fields blank
Click OK and start genymotion as administrator
If problem persists try close genymotion, Android studio and
Force kill adb.exe with task manager and any VirtualBox processes.
Start Genymotion as admin
If still fails, Go to your virtualbox settings, under the general tab on the top left , set Type to Microsoft Windows and set Version to windows 10
Start Genymotion again as administrator
Finally if still missing IP,
You may need to change IPV4 address in File > preferences > Network from 192.168.56.1 to 192.168.1.201 or run genymotion in compatibility mode (Windows 8)
Right click genymotion >properties > Compatibility >Tick Run this program in Compatibility mode for > Select Windows 8 in dropdown
PROBLEM WITH VIRTUAL NETWORK ADAPTER
It could be that OracleVirtualBox did not install driver correctly as I experienced too.
Solution:
Delete all previous virtual box adapters
Go to device manager and click "Action" > "Add legacy hardware"
Install the oracle virtual box adapters manually (my path was C:\Program Files\Oracle\VirtualBox\drivers\network\netadp\VBoxNetAdp.inf
After manually installing the driver
Configure VirtualBox Network Settings
Start Oracle VM VirtualBox and go to "File" > "Preferences" > "Network" > "Host-only Network" and configure as above
Click OK and start Genymotion
I'm sorry to bother you 4Jean.
Installing Windows 10 Fall Update fixed it for me, thanks for trying to help.

Why can't Visual Studio 2013 see the Remote Debugger running on my Surface?

I am trying to install and run my Windows Store app on a real Surface RT device. I have installed the Remote Debugger for ARM and its running, with no authentication on 4018.
Visual Studio fails to see the device, fails to connect and deploy.
In Windows on the desktop, I cannot ping and my port-query tool says 4018 is down, the host is unreachable.
What can I do? Why didn't they just use USB like Windows Phone development?
Microsoft don't tell you this, but you need to configure some firewall rules for the device to become visible on the network. Of course, you won't find anything by searching for "firewall" from the Start screen, but it can be found as a Snap-in for MMC.
You could turn the firewall off for the Private Profile, i.e. your local, private home network, since your home router already has a firewall and the one in Windows is just there to annoy people; cause family members to call and interrupt your dinner while they struggle to get things working on their budget new Windows 8 laptops (with no touch screen), or you could set the right rules manually.
However there's an easier way, turn on the oh-so-discoverable - especially on a tablet that's not even supposed to even have a desktop - "Network discovery and file sharing" by opening Windows (file) Explorer and clicking on the Network node on the left. A bar will pop up to remind you that Windows is getting in the way and that you can click it to make stuff work again; this configures the firewall for you.
Note that turning on "Network discovery..." via the option under Control Panel > Network Sharing Blah > Instantly-forgettable Name doesn't work. No one knows why.
By now you should be able to ping you device and the port is open, just in time for your battery to have gone flat.
Important Edit
Today, its not working again and pop-up doesn't appear again so I cannot try the same trick. My port query tool says the port is not open (it was the other day).
So I tried this, but its not working for me.
# Elevated Command Prompt #
netsh advfirewall firewall add rule name="RemoteDebugger" dir=in action=allow protocol=TCP port=4018
That says 'Ok.' but the port isn't open.
So I went into MMC and added the Firewall snap-in and its enabled itself again for the Private profile.
Then I noticed that it doesn't turn off. If you flip it to Off and hit Apply, it does nothing!!
There are now two inbound rules for the Remote Debugger, the one I setup and another for the executable. Still, doesn't work.
This thread:
http://answers.microsoft.com/en-us/windows/forum/windows_rt-networking/possible-windows-firewall-bug-on-surface-rt-blocks/caa8b40c-dacc-4d19-a751-7a04f8ef00e4
There's an answer stating:
Open Control Panel -> Administrative Tools -> Windows Firewall with Advanced Security.
Click "Windows Firewall Properties" in the main frame
In each of the three tabs of Domain, Private and Public Profile:
1) Note that: If you change "Firewall state", or change "Inbound connections" to "Allow" (inbound connections that do not match a rule are allowed), it is not going to work. The change is immediately lost after you click "OK" or "Apply" to close the dialog box.
2) What you need to do is: click Protected network connections: "Customize", it will show another dialog box, in which you can deselect some network connections. In this case, you can uncheck "Wireless" and leave "Bluetooth" on.
Once you finish step 3, Action Center will pop up an alert, saying Windows Firewall is off or not using recommended settings. You can ignore this alert, or turn it off in "Change Action Center settings".
Though someone on that thread confirm it had worked, it hasn't for me.
Luke

Can't start hostednetwork

When I try to run netsh wlan start hostednetwork, I get the following message:
C:\Windows\system32>netsh wlan start hostednetwork
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
I'm running this with admin privileges, so it's not the notorious
C:\Users\Kevin>netsh wlan start hostednetwork
You must run this command from a command prompt with administrator privilege.
How do I get the hosted network "in the correct state"?
This happen after you disable via Control Panel -> network adapters -> right click button on the virtual connection -> disable
To fix that go to Device Manager (Windows-key + x + m on windows 8, Windows-key + x then m on windows 10), then open the network adapters tree , right click button on Microsoft Hosted Network Virtual Adapter and click on enable.
Try now with the command netsh wlan start hostednetwork with admin privileges. It should work.
Note: If you don't see the network adapter with name 'Microsoft Hosted Network Virtual Adapter' try on menu -> view -> show hidden devices in the Device Manager window.
Let alone enabling the network adapter under Device Manager may not help. The following helped me resolved the issue.
I tried Disabling and Enabling the Wifi Adapter (i.e. the actual Wifi device adapter not the virtual adapters) in Control Panel -> Network and Internet -> Network Connections altogether worked for me. The same can be done from the Device Manager too. This surely resets the adapter settings and for the Wifi Adapter and the Virtual Miniport adapters.
However, please make sure that the mode is set to allow as in the below example before you run the start command.
netsh wlan set hostednetwork mode=allow ssid=ssidOfUrChoice key=keyOfUrChoice
and after that run the command netsh wlan start hostednetwork.
Also once the usage is over with the Miniport adapter connection, it is a good practice to stop it using the following command.
netsh wlan stop hostednetwork
Hope it helps.
First off, when I went into cmd and typed "netsh wlan show drivers", I had a NO for hosted network support too. Doesn't matter, you can still do it. Just not in cmd.
I think this problem happens because they changed the way hosted networks work in windows 10. Don't use command line.
Just go on your pc to settings>Network>Mobile Hotspot and you should see all the necessary settings there. Turn it on, set up your network.
If it's still not working, go to Control panel>Network and Internet>Network and Sharing Center>Change Adapter Options> and then click on the properties of the network adapter that you want to share. Go to the sharing tab, and share that internet connection, selecting the name of the adapter you want to use to share it with.
I encountered this problem on my laptop. I found the solution for this problem.
Test this command in the command prompt "netsh wlan show driver".
See Hosted network supported.
If it is no,
Then do this
Go to device manager.
Click on view and press on "show hidden devices".
Go down to the list of devices and expand the node "Network Devices" .
Find an adapter with the name "Microsoft Hosted Network Virtual Adapter" and then right click on it.
Select Enable
This will enable the AdHoc created connection, it should appear in the network connections in Network and Sharing Center, if the AdHoc network connection is not appear then open elevated command prompt and apply this command "netsh wlan stop hostednetwork" without quotations.
After this, the connection should appear.
Then try starting your connection. It should work fine.
First check if your wlan card support hosted network and if no update the card driver. Follow this steps
1) open cmd with administrative rights
2) on the black screen type: netsh wlan show driver | findstr Hosted
3) See Hosted network supported, if No then update drivers
Symptoms
You install an application that uses Microsoft Virtual WiFi technology on a computer that is running Windows 7 or Windows Server 2008 R2. However, the application does not work after the computer restarts. Additionally, you receive an error message that resembles the following:
The hosted network couldn't be started. The group or resource is not in the correct state to perform the requested operation.
Cause
This issue occurs because the Virtual Wi-Fi filter driver does not create the Virtual Wi-Fi Adapter correctly when a PNP resource rebalance occurs during the startup process.
Notes
1.This issue may occur when a Plug and Play (PNP) resource rebalance occurs during the startup process. The PNP resource rebalance is usually triggered by a change to the hardware configuration.
2.If you open Device Manager when this issue occurs, you notice that the Virtual WiFi Adapter is not created.
If you can't restart your hostednetwork after rebooting the OS ,just Try this hotfix .It fixed my problem. Or try to figure it out by yourself according to the Symptoms and Cause mentioned at the start of my answer.
Often, I've found that the solution to this problem can be fixed by disabling and then enabling the Wifi hardware. I've made a script to do this automatically instead of doing it manually by going to the device manager. You can find it here
Some fixes I've used for this problem:
Check if the connection you want to share is shareable.
a. Press Win-key + r and run ncpa.cpl
b. Right click on the connection you want to share and go to properties
c. Go to sharing tab and check if sharing is enabled
Run devmgmt.msc from the run console.
a. Expand the network adapters list
b. Right click -> properties on the adapter of the connection you want to share
c. Go to power management tab and enable allow this computer to turn off this device to save power. Restart your laptop if you've made changes.
Check if airplane mode is disabled. You can enable airplane mode and then turn on the wi-fi, you can never know. Do disable airplane mode if it is on.
Use admin command prompt to run this command.
If none of the above answers worked for you, You can try the following solution which worked for me.
Go to Services manager(services.msc) and enable the below services and try again.
WLAN AutoConfig
Wi-Fi Direct Services Connection Manager Service
Hope this solved your problem.
The hosted network won't start if there are other active wifi adapters.
Disable the others whilst you're starting the hosted network.
Fixed by installing "Wifi Direct Access Point". HostedNetwork is not well supported by some Windows 10 drivers.

Resources