Results 1 to 2 of 2

Thread: Programming LAN Exclusive WiFi Programs

  1. #1
    Join Date
    Jan 2012
    Beans
    17

    Programming LAN Exclusive WiFi Programs

    Hola,

    What is a way wherein a signal can be sent via the local area network wifi exclusively?

  2. #2
    Join Date
    May 2008
    Location
    UK
    Beans
    1,447
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Programming LAN Exclusive WiFi Programs

    Not sure why you would need to do this - but in general if a device has multiple connections the device can do one of two things :
    1) it will use the "best" connection for all of it's traffic - best is normally defined in terms of speed, but depending on other things it can have other criteria
    2) It will try to share the traffic across multiple connections.

    This is all normally determined by the network and and IP routing layers.

    By the time you get to the higher level protocols (TCP or IP datagrams) then you normally (as a programmer) don't have control over the interface that you use - since the lower layers have done all of this for you.

    You don't say what programming language you are using, or which protocols or libraries you will want to use. It may be that on networking library you are going to use, you can specify which interface to use, or at least a priority for each interface.

    Maybe the simplest way is simply to disable the interfaces you don't want to use, other than that you may well need to write your own lower layers to ensure that you program uses WiFi only.

    Note : You might find that if you only want to use WiFi for some applications, and those applications only go to some hosts, you might be able to use a firewall (or similar) to block traffic to those hosts from anything other than your Wifi connection - I don't know if a firewall exists that does that though.

    Another way would be to organise your network (via routers etc) so that each PC interface gets a different IP address, and then choose which source IP address your program uses when it connects. you might well find that your PC gets unique IP addresses per interface anyway - that depends on your router.
    Last edited by Tony Flury; January 28th, 2012 at 09:35 AM.
    Tony - Happy to try to help.
    Unless otherwise stated - all code posted by me is untested. Remember to Mark the Thread as Solved.
    Ubuntu user number # 24044 Projects : TimeWarp - on the fly Backups

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
  •