Results 1 to 5 of 5

Thread: Linux/Windows Ad Hoc connection question

  1. #1

    Linux/Windows Ad Hoc connection question

    Quick question. In Windows Vista, you can go to the "Connect To" menu and create an ad-hoc peer-to-peer connection. I'm assuming a Linux machine can see this wireless connection and connect.

    Is there a way for Linux (Ubuntu 7.1) to wirelessly broadcast a similar ad-hoc connection so that a Windows machine can connect to it? I need the Linux machine to host.

    Thanks to any replies!

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    Based on what WIFI NIC you're using it's as simple as:
    Code:
    # iwconfig eth1 mode Ad-Hoc
    If it's a Madwifi supported device, you'd need to delete the interface, and recreate it with ad-hoc as it's purpus:
    Code:
    # wlanconfig ath0 destroy
    Code:
    # wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  3. #3
    Thanks for the reply. I typed in the following: sudo iwconfig rausb0 mode Ad-Hoc
    And it seemed to have accepted that without error. How do I create the actual network and how do I test it? Thanks!

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    If you want the commands to do it, it would be:
    Code:
    # iwconfig rausb0 essid <name of other PEER>
    # ifconfig rausb0 netmask 255.255.255.0
    # ifconfig rausb0 <desired IP> up
    But I would suggest to go into Administration->Networking and see if you cant control it from there.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  5. #5
    Quote Originally Posted by redhead View Post
    If you want the commands to do it, it would be:
    Code:
    # iwconfig rausb0 essid <name of other PEER>
    # ifconfig rausb0 netmask 255.255.255.0
    # ifconfig rausb0 <desired IP> up
    But I would suggest to go into Administration->Networking and see if you cant control it from there.

    Awesome. That works. Thanks for helping out a Linux newbie. I can connect to it from another Ubuntu machine. However, Windows still can't see it for some reason. Hmmm... is there another option I gotta have in Ubuntu? Or is this a Windows issue?

    Thank you so much!

Similar Threads

  1. Dial Up Connection in Linux
    By omidkamangar in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 09-29-2006, 09:37 PM
  2. Windows is bad for your internet connection
    By AljoshaNL in forum Windows - General Topics
    Replies: 4
    Last Post: 04-18-2006, 07:01 PM
  3. How to Setup a VPN Connection in Windows XP
    By The Donald in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 10:24 PM
  4. Windows LAN: Connection present, but won't access network...
    By Lixus Looser in forum Windows - General Topics
    Replies: 11
    Last Post: 02-27-2004, 03:01 AM
  5. Help with a Windows question please
    By mcdougrs in forum General Chat
    Replies: 5
    Last Post: 08-08-2002, 04:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •