CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    17

    Internet connection

    Hi all,
    Does anybody can tell me how I can decide wherher internet connection is making with phone line (via modem) or with local area network.

    Regards,
    Mileta.



  2. #2
    Guest

    Re: Internet connection

    Hi. Just a thought, but I believe there is a way to get access to the header information on each ip packet. If you obtained the MAC address from that header (it would be there) you might then be able to determine which device the packet was destined to use...(each device has a unique MAC address.) I have never done it myself or even tried, so take this suggestion with a grain of salt.

    Good Luck



  3. #3
    Join Date
    Apr 2001
    Posts
    3

    Re: Internet connection

    HI Mileta
    could you please help how to check internet connection in java. or which ever language you have used. Either send me code or logic so that i can write .

    Hoping for a prompt reply
    Thanks
    vijay
    [email protected]


  4. #4
    Join Date
    May 2000
    Location
    USA,Utah
    Posts
    1,303

    Re: Internet connection


    DWORD flags = INTERNET_CONNECTION_LAN
    if(InternetGetConnectedState(&flags,0) )
    //Lan connection
    flags = INTERNET_CONNECTION_MODEM;
    if(InternetGetConnectedStat(&flags,0);
    //Modem connection




    Regards,
    Brandon Parker

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured