Page 1 of 1

Connect to Windows7 created ad-hoc network

PostPosted: Oct 15th, '11, 22:00
by inp3dance
Hi guys,

I'm facing the following situation: at the place where I am now to internet connection is set up by a dial application which is, of course, windows only. I have only linux on my laptop, but my girlfriend has windows 7, so she can connect to the net. What I tried to do is to set up an ad-hoc wireless connection on hers laptop and to connect to it from my linux box. Of course I didn't succeded. I see the created wireless network, but can't connect to it. I tried different encriptions too, no difference. Does anybody have some experience with internet sharing from windows to linux? How can I set it up?
I can use command line too, I'm familiar with wireless-tools.

Thank you!

Re: Connect to Windows7 created ad-hoc network

PostPosted: Oct 17th, '11, 01:02
by JoesCat
As a possibility, have you tried looking at the MAC address? I know with broadband, ISPs usually check the MAC to limit connections to only one computer (or a router), and it may be similar with Dial-up as well.
For example, Windows dial-up networking uses virtual MAC addresses to manage the phone connection as if it were a network card. Some Windows VPN clients likewise have their own MAC address. The MAC addresses of these "virtual" network adapters are the same length and format as true hardware addresses.
http://compnetworking.about.com/od/networkprotocolsip/a/macaddressing.htm.

You may want to look into cloning the windows7 machine's dial-up MAC value for dial-up purposes (since only one of you can only dial-up at one time). I don't think you want to do this for wifi as it might cause problems when both of you share the same wifi connection.

Re: Connect to Windows7 created ad-hoc network

PostPosted: Oct 20th, '11, 15:35
by truls
Maybe you need a proxy server on the windows pc, Analogx should do the trick. (http://www.analogx.com/contents/downloa ... eeware.htm)

Re: Connect to Windows7 created ad-hoc network

PostPosted: Dec 17th, '11, 21:26
by ajvlad
If you setup internet share connection in win7, the wireless adapter must be set by windows with static ip something like 192.168.1.1 if I am not wrong.If you are using dynamic addressing for your linux laptop's wireless adaptor you cannot connect to the windows ad-hoc.Just put them both to talk same language.Or both dynamic or both static ip.Question:why you cannot connet from linux to the dial-up connection for internet.Because that is missing the modem or what?

Re: Connect to Windows7 created ad-hoc network

PostPosted: Dec 18th, '11, 16:39
by doktor5000
Actually when using ICS in windows, the computer told to do so will do the following, IIRC:
Change it's own IP adress to a static one which is predefined.
Act as a DHCP server with a predefined, difficult-to-change ip adress range.
Acts as a DNS server for the DHCP clients.

Maybe check back with: http://windows.microsoft.com/en-US/wind ... on-Sharing

Re: Connect to Windows7 created ad-hoc network

PostPosted: Dec 18th, '11, 18:27
by linuxero
I agree with ajvlad. That seems to be the whole problem if you cannot connect your machine to the Windows one..

Try working in that line.

Re: Connect to Windows7 created ad-hoc network

PostPosted: Dec 18th, '11, 19:12
by ajvlad
The problem is that even xp with 7 sometimes cannot be connected using dynamic addresing.For momentary jobs I just setup static addreses.For yiu I think will be a bit difficult to use static addresing for wireless,because for the connection to other networks,access points,routers,etc you'll need to revert to dhcp.
So,for the win7 system,once you created the isc, go to the wireless adapter properties and revert the windows settings to dynamic addressing.After that you create the ad-hoc.
Once again,why you cannou dialout from your linux laptop?Will be better solution to do this and to share this connection from there to the win7 machine.