Windows Phone 8 Emulator not connecting to internet - c#

I am trying to connect Windows Phone 8 emulator to the internet. I have tried all the tricks and steps given in Stack overflow or any other site but I am unable to get it.
I tried this:
Step 1 - using Hyper-V start the server, once started u can see the two new network adapters added in the (network sharing) page.
Step 2 - go to your visual studio IDE where your application runs, using Emulator run your application, once started try to open IE, it will not connect to internet.
Step 3 - now again come back to network sharing page right click on external adapter which was created newly select properties, hit on sharing tab, now check the two options to have tick mark if not tick that two options and click on OK.
Step 4 - internal adapter which was created newly will be changing the domain name from Unidentified network to your shared Domain name, once changed try to access the IE again in emulator which runs already. now i hope the internet connection works.
But once it's done it is showing:
The Windows Phone Emulator wasn't able to connect to the Windows Phone operating system:
The phone didn't respond to the connect request.
Some functionality may be disabled.
The resolution to which I found on internet was:
All you have to do is going to "Network and Internet --> Network Connections", right click on "vEthernet (Internal Ethernet Port) Windows Phone Emulator" and Enable it.
But it was already enabled .
So I don't know how to make internet work.

Some connection tools on the host can have negative effects when used with the emulator; I found having cisco VPN client installed on the host prevented the emulator from finding the internet. Other VPN clients may have similar side-effects. I simply uninstalled cisco (the inbuilt windows VPN is fine for what I need) and it worked perfectly.
I've also seen problems where it won't find the internet after the host has been suspended / resumed. In that scenario, it turned out to be bad network drivers. I installed a dedicated Intel NIC (rather than the on-board NIC on the motherboard) - problem solved.
Basically, Hyper-V is a bit fussy.

1.Check whether you are using latest internet explorer 10 or not. if not update and check it.
2.Still if it's not working, it could be the problem with your display drivers. You should have WDDM 2.0 drivers. Graphic card also goes well.

If you are using any proxy servers which require credentials for connecting to the internet, it may not probably get connected from the emulator.
This is because it doesnt support proxy authentication. The class for authentication are missing in the phone version of .Net
Please see the below post .
Not able to connect to webservice from a WP7 emulator

Related

Connecting to VPN stops UWP apps internet communication

I am making an app which requires connecting to a specific payment gateway. This payment gateway restricts us to use its VPN for communicating with its API. The problem is as soon as I connect to this VPN, internet connectivity for UWP apps stop functioning. First I thought its problem with my app but even standard apps like Store and Edge browser even doesn't work. Please let me know a workaround to make UWP apps to function with VPN. Since other apps apart from UWP function properly like Firefox, IE, etc easily open up web pages. Skype desktop works... its just UWP apps which don't work.
Thanks in advance.
This will depend on how you are creating the VPN Interface and what the expectation for routing as well as the Interface classification is.
Classification : Network classification such as Private, Public, Domain. You can check the interface classification by running the Powershell Commadlet :
Get-NetConnectionProfile
This will impact the UWP traffic since, if the traffic is trying to go through the VPN, it will require the Private Networking Capability to be able to go through an Interface marked as Private (and there are no other Network Isolation rules set)
More details for at : https://msdn.microsoft.com/library/windows/apps/hh770532.aspx
To check if this is the issue one quick way would be to try using an inbox tool from an admin command prompt as follows
checknetisolation Debug -n=<Package Family Name>
You can get the for an app by running the Get-AppxPackage commandlet in Powershell. With the above command, you will be prompted to use the app and reproduce the issue. Once it has been reproduced you will come back to the app and hit Ctrl + C and it will display if it detected any Drops due to incorrect Capabilities.
Routing Now in general when a VPN connection is made and no routes are set it is marked as a Force Tunnel VPN. What that means is that the Default route for other interfaces gets disabled and the VPN interface's default route gets prioritized. I am not sure if this is your intention. If you only need to use the VPN to communicate with the Payment Gateway, you should consider making the VPN split tunneled after which apps like Edge and Store should continue working going over the physical interface and your App will work as long as it has the Private Networking capability.
From answers.microsoft.com (Thanks to "Ovidiu Cimpian")
go to Control Panel\Network and Internet\Network Connections
open the adapter for the vpn.
Right click -> properties and go to Networking tab.
Select internet protocol version 4 (and/or 6) -> properties -> advanced
deselect Use default gateway on remote network.

Accessing an IIS Website from a mobile phone that is connected via usb cable directly with the windows machine

You may find this question very odd but these days we have all sorts of windows and mobile phone apps. Although googling it didn't help but I thought may be someone somewhere knows the answer.
Is it possible to access an IIS hosted website on a mobile phone. Mobile phone is connected to the windows machine via usb cable. If it is possible then what is the procedure please.
IIS Website is written in asp.net mvc 4 razor with c#.
Unfortunately the network does not have a wifi so connecting to the windows machine via wifi is out of the question.
I am administrator of my windows machine.
At the moment, it is also not possible to host the website on the server and make it available over the internet.
My phone is latest android.
In simple words, I have a website that is hosted on IIS and the phone is connected to the machine via usb and I want to browse the website from my phone.
Some ideas from the top of my head:
If your mobile phone has internet access and you can access your network router (or you can ask your admin to do this for you) than you could just simply forward a port to your PC and connect from internet to your router with appropriate port. Please look into your router manual for more details
You can also buy cheap usb wifi key that you can use with your PC as set up direct connection with your phone
Depending on your mobile phone OS you can actually share internet connection (so probably at the same time give your phone access to your local PC) by using 3rd party software and some hacks - this is one for Android but requires rooted OS http://www.howtogeek.com/117118/how-to-connect-your-android-to-your-pcs-internet-connection-over-usb/
Good luck! :-)

Can a local web server be created for Windows 8 Surface RT

My goal is to run flash locally on a Windows Surface RT tablet. From research, I have found that for websites to run flash, they have to be whitelisted on Microsoft's website. Through further research, I have found how to hack the whitelist to add any domain:
http://www.redmondpie.com/how-to-enable-flash-for-any-site-in-windows-8-rt-metro-internet-explorer-10/.
However, I cannot add the local file system (i.e. C:\ or file:\\) as they are not domains. One solution, I have though of is by using localhost. How can I write a web server to run on Windows 8 Surface RT, or can it be done?
In C#, I know you can use System.Net.HttpListener: http://www.codehosting.net/blog/BlogEngine/post/Simple-C-Web-Server.aspx. Is System.Net.HttpListener supported with Surface RT? If not, what are alternative solutions to play flash locally?
Theoretically, it is possible. You need to use StreamSocketListener to get a StreamSocket. Then you handle http input from that socket (tons of work), and send back your response. I've made my protocol work. One thing you might need to pay attention is that you might need a second machine to send the http request. I use IE from another PC to send the test request. Win8 network isolation won't allow tcp connections between 2 apps of a same machine...

Windows Phone 7 Emulator Internet

I am really struggling to get the Windows Phone 7 emulator connecting to the internet. The following things are not an issue:
My proxy settings are correct. I can browse the internet through IE and my colleague can connect with the same settings.
I do not have fiddler installed so this should not be causing problems.
I receive no error messages starting up the emulator or using the emulator.
I have uninstalled and re installed the SDK and patched it to the latest version but all of this to avail.
I get the same problem when my phone is connected to my computer, it will stop me being able to browse the internet through my phone.
It is probably worth noting that I can get to internal sites, which are either defined in my exception list, or forwarded on to internal DNS from the proxy server.
Running on Windows 7 Pro x64.
How about testing with Wireshark if connections are emanating from the emulator when you use the browser to visit a site. The reasons for failing to use the Internet can be at many levels. Let's first eliminate the fact that the emulator is sending HTTP requests out. Do you know how to use Wireshark?
I think you need to use something like a Proxifier - a tool that can redirect outcoming requests to the proxy, because WP7 emulator doesn't support proxy as I know.

Visual studio emulator doesn't connect when used in VPN

Hi I'm trying to access internet in emulator when I'm connected to vpn using Cisco system vpn client.
I followed this link
but couldn't get much help.
I'm using Windows8 release preview and visual studio 2012 rc.
I'm able to connect to internet using desktop browsers..
Referencing this this guide, it looks as though you probably have a bridged network configuration or have the device bound to your physical interface. This would explain the behavior you described.
You want to have the virtual machine bound to the tunnel interface created by your VPN connection. If there is a way to choose a NAT option in this dialog, try it. This would be best as it takes whatever path to the internet your computer is configured to take and doesn't require a seperate IP address to be given to your VM from the VPN server.
Using this dialog select the Tunnel/Virtual/Not Physical interface created when you connect to VPN.
Good luck!
you can ask your vpn administrator to give rights for accessing their internet to the user by which you are connecting VPN.
As pointed our earlier it might be because your VPN is restricting your access to the internet. If so, a workaround would be to have your VPN administrator setup a remote desktop you could connect to through the VPN, then run the emulator on the remote desktop to connect to the internet.
Alternatively try to disable any antivirus/firewall suite you have installed to see if it blocks the emulator.

Categories

Resources