Ok, I tried for the last couple hours and I give up: I develop for a mobile device (Win CE on Unitech HT660) and have a weird thing occurring: I try to communicate with a service on my PC and I'm using TCPClient for it.
This works great except for one big problem: Once I unplug the USB-Cable I use to copy the files from VS on program start TCPClient throws a SocketException that no socket connection could be made because the target machine actively refused it (not the case, Firewall is off, no third-party installed and the service is listening)
And it gets weirder: If the cable is plugged in and I remove it after the program made the connection everything works perfectly fine, I can send and receive data without the cable, I can just not connect without the cable.
Btw: It's the same story with MySQLConnection from the MySQL .NET Connector. It works with the cable, but if it is removed without an established connection no connection can be made.
Has anyone ideas on that?
Thanks in advance!
PS: One thing I forgot to mention: I use wireless to connect to my network, and IE as well as pinging the computer with the service and mysql database on it works.
It might be possible that the wireless adapter drivers was not properly installed. You can try uninstalling and re-installing the wireless adapter drivers and check if that helps.
Select the Network or Wifi icon in the notification area. In the list of networks, choose the network that you want to connect to, and then select Connect. Type the security key (often called the password). Follow additional instructions if there are any.
If you can't connect to a Wi-Fi network that you could connect to before, it's possible that the network settings might have changed or the profile is corrupted. To fix this, remove (or "forget") the network connection, then reconnect to the network.
Sometimes you run into a Wi-Fi issue with one particular device. It's probably just a momentary network issue. Try turning off the Wi-Fi on your device, then re-enabling it. If that doesn't work, do the same with your router by unplugging it and then plugging it back in 30 seconds later.
If you're using Vista / Win7, check if the wireless network is set as private / office network. Having it set to public network causes very weird symtoms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With