Internet Connection Sharing using java

Dear all,
I am currently trying to figure out a solution for making an application which would help me accomplish ICS.
I have googled for ideas on this, without too much help.
My ideas so far :
1) Detect input(wait a min. how can I detect if this is the "live" wire ?) from a network interface and then try to share/redirect the traffic to the other n/w interfaces.
2) Actually listing all the n/w interfaces and asking the user to select the master interface.
the problem is, this may also have a few wireless connections hence I would need to know the signal strengths and then post WAP/WEP info too.
I am thinking of using jpcap for this.
This is the first time I am doing such a thing. Please let me know how do I proceed with this. I dont even know if the lines that I am thinkin on (1 & 2) are even correct.
I would be grateful for any pointers on this.
rgds,

If you are talking about NAT? like the real internet connection sharing that many routers, firewalls, etc use to virtualize an IP then it cannot be done in PURE JAVA. Of course you can do something with JNI and possiably even get it to work. But then you will probably just be using features of the platform that your computer is installed upon as in order to do NAT, you have to be able to inject your code into the IP stack code.
Linux you could do it easily as long as the kernel supported it, as you would just have to run ipchains/ipfw commands.
in windows, I have no idea.
However, if you are talking about a proxy, then there are many implementations already done. Proxies are almost trivial to implement these days.

Similar Messages

  • Internet Connection Sharing with onboard LAN

    Hi
    Does anyone know if it's possible to setup Internet Connection Sharing using the onboard LAN?  I've managed to get shared files and folders working, but can't get internet access on the client PC.
    Using the K8MM3-V
    Windows XP Pro on both PC's
    I have 3 NIC's I can use.
    The Host PC is using the onboard LAN to connect to the internet
    I'm using a Realtek RTL8139 Family PCI Fast Ethernet NIC in both the host and client PC's
    The Host PC also has a NETGEAR FA312 Fast Ethernet Adapter (Currently disabled)
    I'm using crossover cable and 2 NIC's method.
    I don't have a hub, switch or router.
    I've had it working before on Windows 2000 Pro, but can't remember how I did it.  (I think it just all worked straight away).
    Anyonew knows if this is possible, please let me know.
    Thanks
    Michael

    Have a look here.
    http://support.microsoft.com/default.aspx?scid=kb;en-us;306126, Hope this helps. DOK

  • Network Configuration Window Freezes When USB NDIS Internet Connection Sharing and Ethernet Port Are Used Simultaneously

    Current Setup:
    Asrock Extreme 4 Z77 mobo with built-in Broadcom NetLink (TM) Gigabit Ethernet.  Windows 8 Pro. Intel i5-3570k (using onboard Intel 4000 HD Graphics).  RAID0- 2 OCZ Vertex 4's.  
    I will refer to this setup as my tower.
    The Ethernet port works fine by itself.  When I use wired tethering with my Android phone (Droid 4 running on 4.0.4 Ice Cream Sandwich), it works fine when nothing is connected into the Ethernet port in the mobo.  
    The issue arises when I try to connect both simultaneously.  The network configuration window in windows basically freezes and I cannot really navigate it without a ~60 second delay at best.  
    I would like to be able to accept the internet from my Android via a USB tether and either bridge the connection or use the internet connection sharing service to route traffic through the unused Ethernet port on the mobo (either to another computer/xbox
    or more desirably a switch/router to spread to the entire home network).  I have extensively researched the issue of Windows 8 become slow and unresponsive when I attempt to do this and I have not found anyone with the exact problem.  I am able to
    do both the MAC bridge miniport (bridge 2 connections) and Internet Connection Sharing though a Windows Vista (home premium) Laptop I have. The difference between the laptop and the tower I am try to do this on is the laptop has a WIFI and Ethernet connection
    while the tower only has the on-board Ethernet. 
    Do I have all the necessary equipment to accomplish this, or do I need to buy a PCIe WIFI card?  If so could I get away with just getting a USB WIFI dongle?
    Any help would be very appreciated. 

    I had the same problem and came here by searching.
    Per Rosengren's method solved the problem, but he didn't say how to do it, so I'll try to explain step-by-step for anyone that may venture here.
    Open Device Manager (right click on Computer > Manage > on the left side, under System Tools choose Device Manager)
    Choose the problematic device in Network Adapters (for me it's called HTC Remote NDIS based device)
    Right click on it and choose Update Driver Software...
    Click Browse my computer for driver software
    Click Let me pick from a list of device drivers
    Uncheck the box Show compatible hardware
    For the manufacturer, choose Microsoft Corporation
    Now you will have two options:
    - Remote NDIS based Internet Sharing Device
    - Remote NDIS Compatible Device
    I chose the second one and it solved the problem, but if it doesn't work you could try the other one. In my case, the driver that was being used was neither of these, but a special driver from Android SDK ADT bundle.
    Pick one and click Next. If a dialog comes up, confirm by clicking Yes.
    Wait a few seconds for the connection to restart. If it doesn't work, try disabling and reenabling USB tethering on the phone, or reconnect the USB cable.
    I should also note that I'm using a custom Android ROM on HTC Wildfire S (unofficial Cyanogenmod). If you have a stock ROM with HTC Sense, maybe this method may not work and you'll need a proprietary HTC driver.

  • Internet connection sharing between Mac Mini and Imac G3- how?

    Ok, I'm trying to connect my G3 Imac (running 10.4.8) to my Mac Mini (also running 10.4.8) but it just wont work.
    I've turned Internet Connection sharing on on my Mac Mini, and set it to share the airport connection to computers connected using Built in ethernet.
    Network (on the M Mini) shows
    Built-In Ethernet is currently active. Built-In Ethernet has a self assigned IP address and may not be able to connect to the Internet.
    Network (on the G3) shows
    Built-In Ethernet is currently active and has the IP address 192.168.2.7. You are connected to the Internet via Built-In Ethernet.
    When i try to go to a webpage on the G3 it fails stating, 'You are not connected to the Internet'.
    I'm using a standard straight through ethernet cable, as I was told a while ago from apple support that it doesn't matter which u use, straight through or crossover.
    Any help would be really appreciated
    Macbook 2.0Ghz 2GB 80GB/Mac Mini 1.42Ghz 1GB 80GB/Imac G3 450Mhz 640MB 80GB   Mac OS X (10.4.8)  

    OK after some playing about I can now manage to connect to the mac mini and vice versa to share files.
    The iMac G3 now says it has an IP address of 192.168.2.18, and that it's connected to the internet via built-in ethernet. I've set configure IPV4 to Using DHCP.
    Except it's not connected to the net.
    If i select Using DHCP on the Mini it doesn't obtain an IP address, not even a self set one. So i've set a manual IP address on that, and everything shows up green. Airpot connected to the internet and Ethernet has an IP address of 192.168.2.30.
    After reading some forums I set up firewall logging. The result is what happens on the Mac Mini when I use network diagnostics on the G3:
    Feb 11 16:43:52 richard-xxxxx-mac-mini natd[394]: failed to write packet back (Host is down)
    So I opened port 394 (not really knowing what i'm trying) but it had no effect.

  • UML290 Internet Connection Sharing

    Once upon a time a Verizon Tech helped me set up ICS on my WinXP machines... And, I promptly forgot some of the details. So, I am sharing them here.
    Basically, what you will be doing is sharing the UML290 Internet Connection while using the Host Computers Ethernet as the Default Gateway.
    BTW, You can rename your Network Connections so that they are easier to keep straight in your head. Right-Click on a Network Connections Line Entry and rename.
    On The Host Computer (The one that *HAS* the 4G lte Modem Connected to it.)
    On your 4G lte properties, under the 'Advanced' tab, in the Internet Connection Sharing block, check both boxes.
    Under the 'General' tab make sure both 'Automatically' check boxes are checked.
    On The Host Computer Ethernet Properties, under the 'General' Tab, Use the following IP Address: 192.168.0.1 with a mask (automatically set when you tab out) set to: 255.255.255.0
    To set up the Client Computer (The one that the USB Modem is *NOT* connected to) you will need to know the Primary and Alternate DNS servers IP addresses. To do so...
    1. Open Network Connections
    2. Right-Click on the Modem entry
    3. Click on 'Status'
    4. Select the 'Support' tab
    5. Select the 'Details' button
    Copy down the DNS Servers IP Addresses... Then close everrything out.
    On the Client Computer select the Ethernet Connection being used to interconnect the two Computers.
    You may need a Cross-Over Cable if either or both Computers have any age ont them.
    Some newer computers automatically detect and switch over, not needing a cross-over cable.
    *IF* your computers can't see each other at all, you need to obtain a Cross-Over Cable.
    OK, moving on... Under the General Tab: Select Use the following IP Address:
    IP Address: 192.168.0.2
    Mask: 255.255.255.0
    Default gateway: 192.168.0.1
    Close out of all property boxes...
    Bring up your Browser and see if it can find Google or any other site you need to get to.
    Hope This Helps...

    VZAM  sometimes does not unload properly, so it's running even if you don't see it.  You may see one (or even two) instances of the process in the Task Mgr.  You can kill it and restart it.   One reason it takes time to start and stop is that it  has to wait for  Wireless Zero Config service to stop so it can take control of  WiFi connections.  When it exits, is usually restarts WZC service.  
    You can also set yoru VZAM prefs for manual startup of the program and connections.  In this case if a connection is lost, you may have to manually re-connect.  

  • Problem with Internet connection sharing between eMac and Powerbook G3

    Hi,
    I seem to be having a slight problem with internet connection sharing.
    My eMac is the main machine with the internet connection, and its running 10.4.6, the Powerbook G3 is running 10.2.8.
    I can connect them all up and get online with both, but I the problem I am having is when I turn the Firewall on on the eMac, the powerbook can't connect.
    Is there anyway I can keep the Firewall enabled and still use internet connection sharing?

    How do I know which ports the Powerbook is using?
    Also I had web sharing enabled on the eMac and it made no difference at all.
    Plus I don't know if this means anything to you, trying to decipher it myself, all I can make out myself on there is port 80.
    May 31 21:26:30 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49743 67.15.24.40:80 in via en1
    May 31 21:26:34 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49531
    May 31 21:26:34 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49532
    May 31 21:26:39 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49533
    May 31 21:26:39 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49534
    May 31 21:26:42 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49743 67.15.24.40:80 in via en1
    May 31 21:26:44 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49535
    May 31 21:26:44 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49536
    May 31 21:29:12 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49746 17.254.0.91:80 in via en1
    May 31 21:29:15 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49746 17.254.0.91:80 in via en1

  • Automate Internet Connection Sharing

    I'm trying to create a couple of Automator workflows or AppleScripts to turn on and off Internet Connection Sharing, preferably with different SSIDs depending on my location (I don't mind having separate workflows/scripts for each SSID). It doesn't look like there are any Automator actions for this so I tried recording my actions, but that's not working. The slightest twitch of the mouse throws off the running script and even if I totally let go of the mouse it's not getting the selections done correctly (for example, instead of opening the System Preferences pane, it keeps going to Mac OS X Software on the Apple Menu).
    Can anyone help me out with this?
    (Cross-posting in Automator and AppleScript forums)

    Hi,
    First of all, to open system preferences, try using the "Launch Application" function in automator and choose System Preferences. This should solve the mouse problem because it doesn't rely on mouse clicks.
    Then, for all other functions where you need to record mouse clicks, try using a separate recording for each mouse click.
    Make sure you set the execution speed for each recording to maximum before saving as applications, otherwise they will take forever to run and you'll have more chance of small mouse movements disturbing the script between clicks.
    I set up scripts in this way to do the same thing you are talking about, except mine where for file sharing with different individuals on my network. So far I haven't had any problems.

  • Slow Internet connection sharing on Macbook Pro

    Hi all,
    I am experiencing really slow internet connection sharing via the airport from a second machine directly. I can access the internet or web pages with excellent reliability however the download/upload speed is 20KB/s at best. If I use the Macbook Pro itself I can get up to 250KB/sec. I read that this seems to be common problem with Snow Leopard. Can someone shed some light on this?
    Thanks

    "... I read that this seems to be common problem with Snow Leopard..."
    Can you shed some light on where you read this?

  • Do I need an internet connection to use the airport base station express?, Do I need an internet connection to use the airport base station express?, Do I need an internet connection to use the airport base station express?

    we have no wireless internet in my house and the only internet connection is a laptop aircard that does not give off signal. will the base station express work without an internet connection being fed to it?

    On the windows computer that is connected to the internet you will need to enable Internet Connection Sharing, see link below.  On the Airport you will need to turn Connection Sharing OFF as the Airport will not be handling NAT (network address translation) or be a DHCP Server as this will be handled by the computer with ICS.
    http://windows.microsoft.com/en-US/windows-vista/Using-ICS-Internet-Connection-S haring

  • Internet connection sharing with a modem and WRT54G

    I currently have dial-up at my location, I will have dsl when i move down the street in about 2-3 months. My question is, I would like to hook up my WRT54G router to my desktop computer that has a external modem hooked to it. I would like to be able to use my laptop from my shop location out in the backyard without having to tie myself into the computer in the house. How can I be able to use the wireless link between the laptop and the router and have it dial the modem on the desktop so I can access the internet out in the shop? I read that this can't be done if using dhcp. I can see both computers hard drives on each machine. Would anyone know of any software that would allow me do this? Thanks, Joseph

    Configure WRT54G as access point only, so labtop can communicate with desktop that has Internet connection. Enable Internet Connection Sharing on desktop to share the Internet connection to labtop.
    Hope helps..
    picoHat

  • Do you need internet connection to use pacman? [solved]

    Yes you do. 
    Sorry for the dum question,
    Do I need to have internet connection to use pacman?
    Thanks
    The reason I ask is because I need madwifi for my wireless and Arch does not allow me to install this file using pacman -A ......
    Last edited by viga (2008-10-29 03:30:58)

    Any particular reason for not using the already built package in extra ?
    http://archlinux.org/packages/search/?q=madwifi
    You can get it from any mirrors, for example :
    ftp://ftp.belnet.be/packages/archlinux/ … pkg.tar.gz
    Btw, pacman has a feature which might be useful :
    pacman -Sp madwifi ~
    resolving dependencies... done.
    http://mir1.archlinuxfr.org/archlinux/extra/os/i686/madwifi-utils-0.9.3.1-1.pkg.tar.gz
    http://mir1.archlinuxfr.org/archlinux/extra/os/i686/madwifi-0.9.3.1-1.pkg.tar.gz
    madwifi depends on madwifi-utils, so you'll want to download this package too.

  • Do I need continuous internet connection to use cc

    I frequently do not have an internet connection. Can I still use Photoshop and Lightroom when disconnected?

    See also Creative Cloud Help | Creative Cloud / Common Questions
    Do I need to be online to access my desktop apps?
    No, the desktop applications in Creative Cloud, such as Photoshop and Illustrator, are installed directly on your computer, so you don’t need an ongoing Internet connection to use them.
    An Internet connection is required the first time you install and license your apps, but you can use the apps in offline mode with a valid software license. The desktop apps will attempt to validate your software licenses every 30 days.
    Annual members can use the apps for up to 99 days in offline mode. Month-to-month members can use the software for up to 30 days in offline mode.

  • Windows 8.1 Group Policies For Internet Connection Sharing?

    Are there any more detailed policies available other than simply allowing or blocking Internet Connection Sharing?
    I need to find out if there are policies allow management of Internet Connection Sharing?  For instance we would like to allow ICS, but control it so that it cannot be set up by the user in unsafe manner.
    We would like to either set the PSK password in advance or at least disallow weak ICS WPA passwords.  It would also be a good idea if we could set up ICS so that only domain joined computers from our domain could join the ICS session from another computer
    on our domain or else disallow direct access and file sharing between the ICS host and the guests joining the ICS network.
    Can these types of things be managed via group policy?

    > Are there any more detailed policies available other than simply
    > allowing or blocking Internet Connection Sharing?
    No.
    Greetings/Grüße,
    Martin
    Mal ein
    gutes Buch über GPOs lesen?
    Good or bad GPOs? - my blog…
    And if IT bothers me -
    coke bottle design refreshment (-:

  • Do I have to have an active internet connection while using Audition

    Do I have to have an active internet connection while using Audition?  Sometimes I will want to take it on my laptop to places where I will be unable to get an internet connection.  Will the program still work in such cases?

    As long as you aren't using the Cloud for audio file storage, yes it will. I believe that it may occasionally need to "phone home" to check your credentials if you are using a CC version but only about once a month. It should warn you though I think but providing you have been using it at home in the days before you are away from the internet it should be OK.

  • Do you need a internet connection to use youtube?

    Do you need a internet connection to use youtube?

    The only alternative would be to download the video from YouTube on your computer and then, presuming it's one of the h.264 videos (Flash videos will not work on an iPod touch), you could then probably load it onto your iPod and view it with the iPod needing to be connected to the Internet. But you still need an Internet connection for your computer.

Maybe you are looking for

  • Maintain of retention money

    what is the need for maintain retention money? is it applicable in customer poin as well as vendor point how do we do the settings for this? what the impact at the time of receipt and payments? is there any relation between retention money and the cu

  • Generate DELVRY  Idoc when Post goods issue is done in SAP

    I need to generate an Idoc when post goods issue is done in SAP (outbound to SAP) .I understood that I can do this using the message control .The message type DESADV with the process code DELV will support this. But I didn’t understand how to trigger

  • Check username and password

    Hallo, I have been working recently with netweaver. I should write a method that checks the username and password. Username and password are to be taken over by a logon.jsp. It would be very nice if someone could help me.

  • Disable backlit keyboard in bedside mode

    Please implement this for the Q-models, as the light from the keyboard is like lightning bolts into your eyes and undo's the purpose of a bedside nightclock.

  • Putting my iMac to sleep crashed my jump drive.

    So I was working on a project in after effects off of a jump drive. I put the computer to sleep because I had to go help a friend move. I left it in sleep mode over night and when I came back to it, it refused to read my jump drive. The thing was sti