Not able to connect to Internet from Visual Studio Emulator for Android - emulation

I just installed VS 2015 RC and opened up the VS emulator for Android. I am not able to connect to internet from this emulator. I went to settings -> WiFi and could see its turned on, but not showing as connected to any network.
Upon turning off the wifi and turning it on, I could see the status as "Connecting".
How do I configure this emulator to access internet ?

I had to just disable the VirtualBox Host-Only Network adapter, which Genymotion emulators under VirtualBox used (Control Panel - Network and Internet - Network Connections on Windows 10), then restart the emulator and it works like a charm.
Greg

If you use Wifi to connect to internet. Just go to Run and search Hyper-v manager so run it. Select your emulator from virtual machines section right clicking on it go to settings . You see some adapters . we need seconed item external network.
so change it to your Wifi adapter. go to your emulator and google Iman Mohadesi. it works. just it.

Put away your shotguns folks. The key to solving this is a complete understanding of the problem. The VS Android Emulator is not configured out of the box with an external network connection. (Why? Why? Why?). The only network adaptor it has (Window Phone Emulator Internal Switch) is (as it name says) internal, that is not connected to the internet. It is only used (apparently) for communicating with the host.
So to have internet connection we need to add another virtual adaptor and connect it on the host system to the internet.
See this blog post to add and configure adaptor: http://blog.tpcware.com/2017/03/visual-studio-2017-android-emulation/
Overview:
In Hyper-V Manager add a new Virtual Switch. Name it External. See that it is connected to your real network connection.
In the virtual machine settings for the Android emulator, add a new network adaptor (emulator must be stopped to do this). Select the newly created external virtual switch.
Start emulator and open browser. Voila! You now have internet access.
So please disregard all the advice about rebooting, repairing, re-installing, etc. This is all a complete waste of time. I am astonished that some folks report this fixes the internet connectivity.
One last thing. The blog post says that this approach does not work if you network adapter is wireless. It works find for me and I only have a wireless connection from my laptop.

This solved my issue. there must be an internal and external network with the external listed after the internal. Use Hyper-V manager to fix these up on all your VS Emulators VMS.
No internet connection for Visual Studio Android Emulator

I only use Hyper-V and for some reason, all my Android emulators failed to connect to internet. To resolve this, go to Hyper-V Manager -> Virtual Switch Manager (on the right side of the window) and remove the corresponding virtual switch, in my case the Wireless. Finally in Visual Studio, run the app with any of the emulators and wait till finish its re-install the virtual switch.

In my case, I had the wifi enabled instead of ethernet (The cable was accidentally unplugged). pluggin it back solved the problem.

this link enter link description here
saved my a lot of times. Hope this help for you.

Related

Android studio AVD internet access

I am using Android studio 3.0.1 and that is working really very fine. I have upto date SDK version and I have upto date gradle version.
Everything seems to be perfect now. But I am now facing a problem and I have no idea why it is occurring.
Problem:
Whenever I try to access webservices my emulator/AVD never access that. Also I am unable to access the internet using emulator browser. Even it is unable to open the Google.com page.
I have searched this problem but non of them is working for me. I have checked the Ip configrations and that is totally fine. I am not using any specific DNS settings and I am not using any special VPN network. My network adapter is just fine. I am using Windows 7
Please help me if anyone of you having solution of this problem. Thanks in advance.
Well there are couple of cases i want to discuss. And that is totally what I dig out after trying for hours.
I have same Issue. and for this I have seen that there was nothing wrong with the AVD i was creating again and again. But I was using Windows 10 and using android studio over it.
The problem was the virtual networks. I got them created for the Blue stacks and GeneyMotion emulator. They sets the IP and the DNS them self for virtual network
SO if you are having virtual network set their IP to defaults. OR disable them at all. Also disable other networks except the one you are using.
and after doing this all. Create the new AVD and check if that starts working.

Using IE in a virtualbox instance to test a site in VS2015 on my workstation

I have an ASP.net MVC application that I've developed using Visual Studio 2015 Enterprise that is not behaving nicely in IE8, and as much as I'd like to just declare IE8 as unsupported, this is unfeasible from a business perspective at the moment.
So, to test in IE8, I downloaded a VirtualBox containing an instance of windows with IE8 from here.
I've been successful in using this instance of IE8 to connect my organization's dev server (which is running Windows Server 2012r2, IIS 8.5.9600), so I've been able to reproduce the issue. I'd really like to be able to step through what's happening in the debugger, though.
So, I believe I have two options.
Connect to the IIS instance on our dev server using Visual Studio's remote debugging feature.
This is kind of intimidating to me to attempt, because there seem to be a lot of options and I'm unsure how to proceed. It would be nice to be able to figure this out, though, as being able to do remote debugging on the dev server would be very helpful for future development. I tried using the default transport and putting the host for the dev sever in the "qualifier" box in VS, but it just told me the debugger service wasn't running on the remote machine, even though I'm fairly certain it is.
Connect to my local workstation running Visual Studio from virtualbox
This seems like it would be the simplest solution, but I can't figure it out. I tried a few different network modes from virtualbox -- NAT, bridged, and Host-Only, but I could never get the page to load in IE inside the virtualbox. I tried using the ip of my workstation as reported by ipconfig /all (the IP of the normal network adapter for bridged and NAT mode, and the IP of the "Host Only" special adapter in Host Only mode) and the port VS was configured to use. No dice.
Any ideas on how I can move forward with either of these options? Or some third, better option?

Enable internet in Tizen wearable emulator

How do I configure my Tizen wearble SDK emulator to use my system's internet connection. This artcle explains Connecting emulator to a network. But I was not sure what port to use in place of "HOST_PORT" and "GUEST_PORT". Kindly help me on this. I am using Windows 7 OS.
When you try to connect from emulator to outside, you don't need any network configuration. The Connecting emulator to a network explains how to connect from outside to emulator.

Windows phone 8.0 error 0x89371B01 when trying to deploy app

I cant find information on this error anywhere. I am connecting to a brand new lumia icon (AKA lumia 929). Dev account is registered. I have attempted:
reinstalling windows phone SDK
restarting phone
restarting computer
ensured the app runs on the emulators properly. the only required capability of this app is network. Capabilities have not been changed from the defaults since the project was created. none of the manifest xml files have been touched.
ensured phone software version is up to date
ensured apphub account is valid and active
ensured the windows phone developer registration tool worked, unregistered and re-registered the phone to make sure
restarting the "ip over usb" windows service thingy
changing the platform built target to ARM or AnyCpu (no difference, same error)
tried alternate deployment methods such as windows phone power tools (the xap deploy) and I get the same error when trying to connect (so I know it's not an issue with visual studio, nor is it an issue with the app code)
I can successfully deploy separate code to a separate WP7 device (so I know it's not an issue with the computer)
tried multiple usb ports
tried two separate laptops
tried visual studio 2013 and 2012
The behavior is this:
Connect the phone via usb and unlock it
Attempt to connect to phone via windows phone power tools OR deploy an app via visual studio
System hangs for about 90 seconds and seems to time out
Error appears
I am able to view the phone contents, name it and explore it on my laptop, but when it comes time to deploy something I am stuck.
Error message is simply: 0x89371B01
What does that mean? Has anyone else run into this?
Have you checked the device drivers on your Windows 8.1 machine? It could be a driver issue with your USB drivers on the computer.
I have also found that, once you get it connected, going into the Device Manager and deleting the device from there and forcing it to reload has helped me in the past.
Out of curiosity, try running "sfc /scannow" at a command prompt on the PC. It may require admin elevation. I've seen some bizarre behaviors due to dll problems in sxs in win 8.1, wondering if this could be caused by that kind of thing.
Couple of things to try:
Have you installed the GDR3 Emulators and tried running it on the 1080p emulator? It looks like the 929 is a 1920x1080 phone and will have the latest the latest updates installed. First place to check.
Based on this feedback in another stackoverflow question it looks like someone was having a similar issue and disabling Hyper-V resolved it for him. If you disable Hyper-V and it works, try re-enabling it and see if you still have the issue.
jmshapland had the correct answer for me, with the same issue. Disabling Hyper-V did the trick! No thanks to microsoft phone dev center forum posting on the issue..
http://social.msdn.microsoft.com/Forums/wpapps/en-US/24bd3e48-e7b4-4d00-8d69-193f49989ce0/0x89731b01-error-during-deploy-to-device?forum=wpdevelop
Looks like I'll be disabling Hyper-V to test on my device, and re-enabling to work in emulator mode:
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
and
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
OK I was able to come up with a repeatable solution for the issue. Im HOPING that by posting this I dont tempt fate and have the phone not work again!
Here are the steps I did to resolve it (not sure if all of them are necessary):
On phone, disable wireless
Connect phone to laptop
Open device manager and click to show ALL HIDDEN DEVICES (including hidden devices is important)
Uninstall ALL phone-related devices (one in portable devices, several in USB
devices) anything that mentions lumia must go
Disconnect/reboot phone
Reboot laptop (there seems to be a process keeping the port open)
I had connectivity, then I lost it, then I re-gained it using these steps and it seems to be reliable for me (so far)

MonoTouch's Soft Debugger don't connect to App on iPhone - why?

I'm quite new on MonoTouch, so please forgive me my question in doubt... ;-)
I need help with the soft-debugger, because it's not connecting to the App on the device. While with iPhone Simulator everything is working as expected, the following happens when I start debugging against my device:
The is uploaded and installed to the device.
MonoDevelop comes up with a window saying the following: "Waiting for debugger to connect on 127.0.0.1:10000..." Please start the application on the device"
When starting the app on the device, the device vibrates indicating that the debugger is not connected....
In the settings of my App on the iPhone I have set the IP-Adress to my Mac's IP.
My iPhone is connected via WIFI to my network. I can ping my Mac from my iPhone and vice versa.
In several screenshots where the debugger was obviously working I saw that the debugger came up with the Mac's IP address and not the 127.0.0.1....
Do I have to configure my IP-address somewhere in MonoDevelop?
BTW: I'm using the latest version of MonoDevelop - it's 2.4.1
I have tried anything.... re-installing MonoDevelop, cleaning up the project several times, setting up a new project.... nothing...
Please, please help....
1.- Make sure you are connected the same wifi network both on device and computer
2.- Open monodevelop and your project and on top of the window select on the combobox "Debug|iPhone" (ScreenShot) setting and then clic on Run(menu)->Run Option (wait until it finishes to load your app on the device and DO NOT Open it yet)
3.- Get the ip address of your computer
4.- On the iDevice make sure that the application its closed then go to Settings -> (YourAppName) here you will be with the debug settings
5.- On Debugger Host setting you must put you computers ip address
6.- on MonoDevelop under Run(menu)->Debug you will be presented with the "Waitting for Debugger"
7.- Open you application and debbuger should connect now
Hope this helps
Alex
Alex,
many thanks for your replies! They were very helpful to me (especially point 5).
I have solved the problem by setting the Host IP in the ~/.config/MonoDevelop/MonoDevelopProperties.xml. That did it! :-)
Now I'm wondering where I do this setting in the MonoDevelop GUI... ;-)
Cheers,
Andreas

Resources