Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Network connections only work if device connected via cable

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.

like image 226
FinalNotriX Avatar asked Apr 23 '11 20:04

FinalNotriX


People also ask

Why can I only connect to the internet with an Ethernet cable?

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.

How do I connect to network without cable?

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.

Why is my computer not connecting to Wi-Fi when other devices are?

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.

Why is my internet working on some devices but not others?

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.


1 Answers

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.

like image 140
Sascha Avatar answered Nov 03 '22 01:11

Sascha