Results 1 to 2 of 2

Thread: How to setup a network among two laptops from the command line?

  1. #1
    Join Date
    Jan 2007
    Location
    Amsterdam, Nederland
    Beans
    814
    Distro
    Ubuntu Development Release

    How to setup a network among two laptops from the command line?

    Hello,

    For a project which I am doing I need to be able to connect two laptops to each other via wifi. There is no external internet connection, so it's not like I am first connecting them to a router or something which hands out internal ip addresses.

    I want a program which I write to be able to access the other laptop using the zeroMQ messaging library. For this I need the other laptop its ip address.

    Does anybody know how I can setup a simple network (doesn't need to be secure or anything) in which each laptop has an ip address? Do I even have to set up a network for this? All tips are welcome!

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to setup a network among two laptops from the command line?

    You should be able to just manually assign an ip address to the interfaces on each machine and then connect directly. ifconfig run with sudo should do that. I find ip to be too complex.

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
  •