Ethernet programming in VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adnanahmed714
    New Member
    • Aug 2006
    • 20

    Ethernet programming in VB

    hi all;
    i am new at this forum; kindly guide me for this ,
    i am want to write a code for ethernet in vb which connect two PC's and send a MSG on other Pc when some event occures . (one behave like clint and other server)
    thanks
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Adnan,

    all you need to know is a little bit of knowledge on windows socket programming as well as some additional knowledge on TCP/UDP protocols respectively.. you can make use of Microsoft Winsock control shipped with vb distribution.. for further reading & understanding kindly refer to below attached links.. good luck & take care my fren.. :)


    Comment

    • BSOB
      New Member
      • Jul 2006
      • 77

      #3
      my input here probably wont be helpfull, but i did this the low-teck way. I gave my "server" box write rights on my "client" and just had the server write a file to a designated path on the client computer with instructions in the file. the client would capture the writing of that file and then "read"/process the instructions.
      im all about the "wrong" way to do things.
      this posed a major security risk, but it worked!
      oh yah, and if you are considering this, im just letting you know that the links sashi gave arnt only the right way to do it, but it will be a lot less work on your part, a lot safer, and a lot more efficient. i only did it my way because i was 13, and i didnt know any better. i only posted because it might inspire you.
      good luck.

      Comment

      • adnanahmed714
        New Member
        • Aug 2006
        • 20

        #4
        thanks sashi!

        but i want a bit more tips how to do it in vb .By the way i have a idea of windows sockets and TCP/IP.

        plz give me some programming hints so that i can implement this.

        thanks again.



        Originally posted by sashi
        Hi Adnan,

        all you need to know is a little bit of knowledge on windows socket programming as well as some additional knowledge on TCP/UDP protocols respectively.. you can make use of Microsoft Winsock control shipped with vb distribution.. for further reading & understanding kindly refer to below attached links.. good luck & take care my fren.. :)


        http://www.vbip.com/winsock/

        Comment

        • sashi
          Recognized Expert Top Contributor
          • Jun 2006
          • 1749

          #5
          Hi BSOB,

          i have been working with both the classic (API) sockets as well winsock programming for few years.. i feel winsock is safer to work around even is the server is behind a firewall.. i.e. server can be forced to listen for incoming connection on a specific port.. the administrator can configure the firewall to listen for either TCP / UDP connection on a specific port..

          i feel it's alot more safer then attempting to connect on any opened ports, which can be very harmful for both the client as well as the server..

          this is just my opinion.. take care my fren..

          Comment

          • sashi
            Recognized Expert Top Contributor
            • Jun 2006
            • 1749

            #6
            Hi Adnan,

            i dont understand abt what u meant by "but i want a bit more tips how to do it in vb".. didn't you check out the samples attached?? take a look and try it out.. take care my fren..

            Comment

            Working...