WCF fails, when my tablet isn't in charger - wcf

I have very interesting problem and I dont have idea, how to solved it. I have WCF application - WCF client is my Windows Phone 8 and WCF host is my tablet with Windows 8. When tablet is in charger, everything works right, but when I disconnect charger, WCF starts be slower and fails. I tried to run this WCF host on different devices and it worked alright, but i need to run the WCF host on this tablet without charger. How to do it?

I solved it. Problem was that the wifi hotspot was created from my laptop and for some reason the tablet didnt like it.... When I created wifi from router, it worked fine.

Related

React Native Expo can't connect from phone to laptop on same wifi

I am building react native app with expo and I'm currently using public wifi because I'm traveling.
On the bus and in the hostel's wifi I've experienced an issue:
- Phone can't connect to Expo running on Laptop (same LAN wifi)
After trying many times to connect using the wifi, and also trying to see if Windows firewall has something to do with it, I finally found out what might be the issue and a temporary workaround.
Issue:
Some routers have a configuration called AP Isolation, that might be activated on the router/wifi of the public place you're using, to avoid someone hack into someone else's computer. So basically no device on the same network can communicate with the other.
Temporary workaround:
The only way I've got this working was by enabling a Wifi Hotspot on my Android phone and connecting the laptop to it. This means I'm using my phone's 4G connection for internet too. Expo seems like it needs to access the Internet and if you don't have data won't work.
The other way might work is if your Windows or Mac computer is able to create a virtual access point. So instead of connecting laptop to phone, you do it the other way around.
Hope this helps someone!
You should be able to run on a virtual device via expo. On my Macbook I run on iOS if doing work in a place where I do not have internet but on a PC you should be able to run the Android Emulator.
While this might not provide the not intuitive way of doing things as you'll be using a virtual device instead of a physical one, it still is very quick and responsive. Just know that animations may not be as smooth.
I fly frequently and running on virtual devices has enabled me to work when otherwise it would be impossible.

Hosting WCF Service online for use from a Windows Phone 8 device

I can't seem to get my Windows Phone 8 app to successfully connect to my wcf service, and I'm wondering if it is because I haven't yet started paying to host the wcf service online. I can connect to the service when I use the WP8 emulator, but not when I load the app onto a device. Should the device be working or do you think it's because I am not yet hosting the service online?
Maybe that's because your wcf service is accessed through localhost when using the emulator.Then, your device has no access to localhost, if I'm not mistaken, which could explain why your device could not connect to the service.The way to solve this could be to host your service online, as you've already figured.

Getting Error "Unable to connect to a phone. Make sure the Windows Phone IP over USB transport service is running"

I bought a Lumia 630 dual SIM recently and has been trying to register my phone for development, but kept getting this error "Unable to connect to a phone. Make sure the Windows Phone IP over USB transport service is running".
What i use to register my phone is Windows Phone Developer Registration(8.1), and the method i have tried:
Restart IpOverUsbSvc service.
Restart phone, and turn off Set Automatic in date+time.
Any help on this will be highly appreciate as I have already spent 2-3 days trying to connect the phone.
Thank you.
Unplug the USB cable and try a different port, try also a different USB cable, and restarting the Windows Phone IP Over USB Transport service...
Take a look at this thread....
Hope it helps
I had to go to Control Panel > Administrative Tools > Services
and start the
Windows Phone IP Over USB Transport Service.
My device is now working.
I tried all the solutions proposed above, but was unable to get the tool to recognize the phone. The phone appeared in Explorer, but the registration tool just couldn't see it. Then I stumbled into this article:
http://toddbaginski.com/blog/fixing-windows-phone-developer-registration-tool-errors/
Basically, you go into Device Manager and uninstall all the USB composite devices. After Windows reinstall drivers for the phone, the registration tool should now be able to see it. It worked in my case, at least.
To uninstall a Windows Phone device
Open Device Manager.
Double-click in portable devices.
Right-click in windows phone, and then click Uninstall.
Click OK to complete the uninstall process.
To reinstall Windows Phone device
In Device Manager, in the Action menu, click Scan for hardware changes.
Just remove the windows phone device from ->Control Panel ->Hardware and Sound->Devices and Printers Options and again add it back.
In my case, IpOverUsbSvc service was completely missing in the list of services.
I assumed it happened when I removed Windows phone support from Visual Studio 2015 and tried to debug app from VS 2013.
Repair of Visual Studio 2013 fixed the issue for me.
Hope that may help someone.
If you try all of Kulasangar's tips and still don't have success, try a different USB cable. Despite the directions stating you must use the one that came with your Windows Phone, that didn't work for me. I took a 3rd party's cable in desperation and that worked immediately.
Hope that helps.
If you encounter the below error message while developing app for Windows Phone.
Error Message:
“Windows Phone IP over USB Transport (IpOverUsbSvc) is not running. Retry after starting Windows Phone IP over USB Transport (IpOverUsbSvc) from the services management console.”
The cause of the error is that the service “Windows Phone IP over USB Transport (IpOverUsbSvc)” is not running. It is very simple to resolve in error.
Simple header over to services.msc. Look for “Windows Phone IP over USB Transport (IpOverUsbSvc)”, the status should be empty or automatic. Right click on it and select Start.
After doing that, try to deploy your app again and it should work fines.
I faced the same problem.
Solution
Apart from changing USB cable, restarting, we can do following steps:
1.Set the correct date and time
2.Change the device name [ From your PC, you can simply change device name]
3.your device must have internet connection.

iPhone sockets working over WIFI but not 3G

I have a native iPhone app that connects to a client machine via sockets. The connection works over WIFI but does not work over 3G.
Does anyone have ideas what the issue could be?
Thank you.
UPDATE: The client machine is not on the same network as the iPhone.
Is this client machine within the same network as the iPhone? Then you can access it over Wifi, but would need a proxy over 3G. Just a guess.
The issue is that some cellular networks block certain ports. This is why it worked over WIFI but not 3g. One of the reasons why it is better to use web services.

Windows Phone 7 App Slows down in Wi-Fi than 3G or LAN

I've developed a Windows phone app which consumes some data from WCF Service. My app seems to be very slow in Wi-Fi on comparing it with 3G or LAN. I'm a new bee to both Windows phone app dev and WCF. I've verified a number of variables on WiFi bandwidth and connection. Wi-Fi looks good, but the app still slows down. So not sure where the problem is? Do I need to add any configuration to my service to avoid this? Or do I need to check my device? Can anyone help me to find out the cause?
I have had a similar issue. Seems like the 3G data and WiFi do not work smoothly when they're both turned on. Disable 3G data and only enable WiFi and vice versa.
This issue appeared for me after the 7.10.8107.79 update.
This bug have been reported to Microsoft and they are looking into the issue.