Author Topic: Wifi peer to peer with WinXP  (Read 6636 times)

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« on: April 03, 2004, 02:09:23 pm »
I\'ve just got my Wifi CF card today, and after making a change to /etc/pcmcia/wlan-ng.conf, the card is recognised.

Now my desktop setups consist of 2 WinXP PCs. PC1, is the gateway to the internet with IP 192.168.0.1, and PC2 is connected via a wired ethernet hub. PC2 has a bridged connection of it\'s LAN and it\'s wireless USB dongle, the bridge having an IP 192.168.0.2 statically assigned.

Now following the instructions at http://www.tomsnetworking.com/Sections-art...cle53-page1.php I setup an ad-hoc network, no WEP.

Now although the instructions say to use DHCP, when I tell the Z to use DHCP, it can\'t connect. When I tell it to use a static IP, it connects but i can ping or see anything. I\'ve ran Kismet on the Z and it see the ad-hoc network fine, so the wireless network is there \"in the air\".

So basically, I can\'t ping anything at all, despite the Z says it\'s connected. Any help on this?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Wifi peer to peer with WinXP
« Reply #1 on: April 03, 2004, 03:15:47 pm »
DHCP won\'t work unless you have a DHCP server. I doubt you do (WinXP doesn\'t provide one).

Do you have a firewall up? It may reject ping probes.


Simon
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #2 on: April 03, 2004, 03:24:15 pm »
Hi lardman,

With PC1 which has WinXP Pro Ed on, when the Internet Connection Sharing is enabled, it recommends that you set clients to get their IP address automatically via DHCP (which I have used in the past). However, now I\'m trying to use static IP addresses for everything. PC2 is running WinXP Home Ed... maybe like you said, the Z can\'t get a DHCP assigned address because WinXP Home Ed doesn\'t have a DHCP server.

No firewalls up at all. I\'ve had the connection working fine with the USB cable, the Z is told that PC1 is the gateway, and it can see all the internet at that point.

I\'m very new to all this Wifi stuff, so maybe I\'ve missed something...

Synfin0

  • Newbie
  • *
  • Posts: 32
    • View Profile
Wifi peer to peer with WinXP
« Reply #3 on: April 03, 2004, 04:09:18 pm »
WinXP has a DHCP server and that is part of what is enabled when you set up Internet connection sharing. My guess is that the bridge is not relaying the DHCP broadcast properly.

When you tried a static IP address on the Z, did you update the default route?  What error does it give you when you try to ping?

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #4 on: April 03, 2004, 04:22:43 pm »
Hi Synfin0,

When I tried to ping PC2 using a static IP on the Z, the Z just reported 100% packet loss. I tried \"route add default gw 192.168.0.1\", but that didn\'t help.

So far I\'ve removed the WLAN from the Bridge on PC2. Now when I try to use DHCP for PC2\'s WLAN connecting, it doesn\'t ever get assigned an IP address. However, when I assign a static IP address to it (192.168.1.1), and assign the Z an address 192.168.1.100, I can ping PC2 from the Z. Of course, I still can\'t see the internet from the Z since the connection has been removed from the Bridge now...

Synfin0

  • Newbie
  • *
  • Posts: 32
    • View Profile
Wifi peer to peer with WinXP
« Reply #5 on: April 03, 2004, 06:45:07 pm »
Hello evowan,

I don\'t think you have a DHCP server PC2\'s wlan interface can reach.  The DHCP server has to be reachable through the interface you are trying to configure and since you aren\'t running a DHCP server on another wlan interface, you won\'t receive an address. (Bridging interfaces is a means around this, but the computer with the bridged interfaces won\'t be able to access the network through the bridge)

Did you try these steps?

1.On PC1, share Internet connection to the interface connected to the HUB using ICS wizard (should have an IP address of 192.168.0.1).
2.On PC2, bridge the wired interface (connected to HUB) and wireless card (set up an ad-hoc network).  None of these interfaces should have or need an IP address (including the bridge).
3.On Z, DHCP should work, but if you want to try static use 192.168.0.x with netmask 255.255.255.0 and default route 192.168.0.1

The Tom\'sNetworking article assumes you have a DHCP server set up.  We\'re also assuming that your wireless card can be bridged.  I have successfully bridged linksys WDT11+WPC11 cards.

You might want to disable and delete all of the ICS and bridging and then start from scratch.

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #6 on: April 05, 2004, 09:29:30 am »
Hi Synfin0,

I\'ve tried the steps but still no success. I now have a strong feeling that my wireless card on PC2 just cannot be bridged. Do you know if this issue of bridge compatibilityt will still be an issue if I use linux on PC2?

Synfin0

  • Newbie
  • *
  • Posts: 32
    • View Profile
Wifi peer to peer with WinXP
« Reply #7 on: April 06, 2004, 02:34:18 am »
Hello,

I\'m glad to hear you suggest linux.  The bridging incompatibility is supposedly hardware dependent, so it would probably not work under linux if the card is the problem.  (I haven\'t done any bridging under linux, only under OpenBSD)

The important thing is, you wouldn\'t need to bridge the cards if you worked under linux (unless you really have to).  WinXP defaults into bridging after it has maybe 3 or more interfaces (I bet you can change it, but I don\'t know how), but linux will let you route between them all.  Do you need to bridge for your application?  If not, a bridge-free setup has the advantage of keeping an additional computer on the network (without having to add another interface).

What wireless card are you using?  As long as your card is supported, it should be fairly easy to setup a wired/wireless router.

tapjpa

  • Guest
Wifi peer to peer with WinXP
« Reply #8 on: April 06, 2004, 02:58:47 am »
Here\'s one other possibility that I have used in the past it\'s a DHCP server for Win XP it\'s not a half bad product and it\'s freeware.
http://home.t-online.de/home/hanewin/dhcp-e.htm

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #9 on: April 06, 2004, 10:01:45 am »
Hi Synfin0,

My Wifi \'card\' on PC2 is a USB dongle, ZD1202 by ZyDAS. I would like to switch to linux on PC2 but I\'m one step behind on getting the Z running with linux even with the USB cable (I\'ve posted something on this thread http://www.zaurususergroup.com/index.php?n...iewtopic&t=2910 ).

I\'ve noticed that WinXP has a \'route\' command that looks similar to linux\'s though I don\'t know enough to drive the command.

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #10 on: April 06, 2004, 11:39:05 am »
Well, got my USB working with linux now... now to try and get my Wifi card to work...

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #11 on: April 06, 2004, 12:00:26 pm »
Synfin0,

Doh... it\'s a ZD1201, not a ZD1202 as I previously said. Currently when I plug it in, it just stops my USB mouse from working!

metal9966

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #12 on: April 06, 2004, 12:12:06 pm »
In building WIFI networks, I have found that it is just easier to buy a $40 access point and route internet from Windose or Linux throught the network (dial up). Or buy a WIFI router if you have cable or DSL. (of course I dont have a Z yet, so have not tried with a Z, but works flawlessly with the Palm Tungston) I tried that Point to Point stuff and it is a mess, plus harder to implement WEP.
Zaurus 5500!  (Finally, many years later)
Other:
Tungsten T5, Treo 650, Handspring Prism, Handspring Neo x 3, Zodiac 2, GPS (for visors) , Targus Keyboard, 1gb SD X 2.

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #13 on: April 06, 2004, 12:17:27 pm »
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Wifi peer to peer with WinXP
« Reply #14 on: April 07, 2004, 05:49:49 am »
Hi ced,

Been trying to compile the module again though I\'m having a bit of trouble. Downloaded the code, then had to manually apply the patch to usb.c and hub.c as it states (doesn\'t help when the code is in a .pdf file!), though I\'m unsure of whether I\'ve performed a manual patch properly.

How do I then proceed to use the provided makefile? When I try \'make\', it says -

make: *** No rule to make target `usb.o\', needed by `usbcore\'.  Stop.


Is there a better way to patch the files?