Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. IP Address of computers on a network

IP Address of computers on a network

Scheduled Pinned Locked Moved Visual Basic
sysadminhelptutorialquestion
16 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P plural

    Hello, anybody with help on how to get the ip addresses or names of computers on an LAN.I tried using the directory services but doesnt work and the netview thing also kinda doesnt work, anybody with help?Thanks

    phatkin

    W Offline
    W Offline
    Wlink
    wrote on last edited by
    #2

    You can use the winshock control. btn_click Text1.Text = Winsock1.LocalIP end sub

    P 2 Replies Last reply
    0
    • W Wlink

      You can use the winshock control. btn_click Text1.Text = Winsock1.LocalIP end sub

      P Offline
      P Offline
      plural
      wrote on last edited by
      #3

      thanks nepalpawn am trying that out but i hope it supports other computers too on the network thanks soo much am happy

      phatkin

      1 Reply Last reply
      0
      • W Wlink

        You can use the winshock control. btn_click Text1.Text = Winsock1.LocalIP end sub

        P Offline
        P Offline
        plural
        wrote on last edited by
        #4

        is the winsock a com control that i will add?

        phatkin

        W 1 Reply Last reply
        0
        • P plural

          Hello, anybody with help on how to get the ip addresses or names of computers on an LAN.I tried using the directory services but doesnt work and the netview thing also kinda doesnt work, anybody with help?Thanks

          phatkin

          K Offline
          K Offline
          koolprasad2003
          wrote on last edited by
          #5

          hello frnd, what u use vb.Net or VB 6.0 ??? regards, koolprasad2003:) Be a good listener...Because Opprtunity knoughts softly...N-Joy

          P 1 Reply Last reply
          0
          • K koolprasad2003

            hello frnd, what u use vb.Net or VB 6.0 ??? regards, koolprasad2003:) Be a good listener...Because Opprtunity knoughts softly...N-Joy

            P Offline
            P Offline
            plural
            wrote on last edited by
            #6

            i use vb.net 2005.Thanks

            phatkin

            K 1 Reply Last reply
            0
            • P plural

              is the winsock a com control that i will add?

              phatkin

              W Offline
              W Offline
              Wlink
              wrote on last edited by
              #7

              Yes that is com control(.ocx).

              1 Reply Last reply
              0
              • P plural

                i use vb.net 2005.Thanks

                phatkin

                K Offline
                K Offline
                koolprasad2003
                wrote on last edited by
                #8

                it's easy then just call shell("ipconfig" > "C:\ip.txt") it will create the text file at location C:\ip.txt it contains the ip and other things too. read it and get information and to get the computer name just use my.computer.name regards, koolprasad2003:)

                If the message is useful for U then please Rate This message... Be a good listener...Because Opprtunity knoughts softly...N-Joy

                P S 3 Replies Last reply
                0
                • K koolprasad2003

                  it's easy then just call shell("ipconfig" > "C:\ip.txt") it will create the text file at location C:\ip.txt it contains the ip and other things too. read it and get information and to get the computer name just use my.computer.name regards, koolprasad2003:)

                  If the message is useful for U then please Rate This message... Be a good listener...Because Opprtunity knoughts softly...N-Joy

                  P Offline
                  P Offline
                  plural
                  wrote on last edited by
                  #9

                  Thanks to ya'all.Thanks so much. this is a real post am happpy

                  phatkin

                  1 Reply Last reply
                  0
                  • K koolprasad2003

                    it's easy then just call shell("ipconfig" > "C:\ip.txt") it will create the text file at location C:\ip.txt it contains the ip and other things too. read it and get information and to get the computer name just use my.computer.name regards, koolprasad2003:)

                    If the message is useful for U then please Rate This message... Be a good listener...Because Opprtunity knoughts softly...N-Joy

                    P Offline
                    P Offline
                    plural
                    wrote on last edited by
                    #10

                    the code doesnt work it says "file not found" any help?is it some text formatting tn i need to do?

                    phatkin

                    1 Reply Last reply
                    0
                    • K koolprasad2003

                      it's easy then just call shell("ipconfig" > "C:\ip.txt") it will create the text file at location C:\ip.txt it contains the ip and other things too. read it and get information and to get the computer name just use my.computer.name regards, koolprasad2003:)

                      If the message is useful for U then please Rate This message... Be a good listener...Because Opprtunity knoughts softly...N-Joy

                      S Offline
                      S Offline
                      SimulationofSai
                      wrote on last edited by
                      #11

                      koolprasad2003 wrote:

                      just call shell("ipconfig" > "C:\ip.txt") it will create the text file at location C:\ip.txt it contains the ip and other things too. read it and get information

                      :wtf: The real question is, would you do that in your project?? Would you create a text file each time and read from it every time you want the ip address?:~ I'd bet that no customer would accept such a solution.

                      SG

                      P 1 Reply Last reply
                      0
                      • S SimulationofSai

                        koolprasad2003 wrote:

                        just call shell("ipconfig" > "C:\ip.txt") it will create the text file at location C:\ip.txt it contains the ip and other things too. read it and get information

                        :wtf: The real question is, would you do that in your project?? Would you create a text file each time and read from it every time you want the ip address?:~ I'd bet that no customer would accept such a solution.

                        SG

                        P Offline
                        P Offline
                        plural
                        wrote on last edited by
                        #12

                        Can u help GS? PLZ?

                        phatkin

                        S 1 Reply Last reply
                        0
                        • P plural

                          Can u help GS? PLZ?

                          phatkin

                          S Offline
                          S Offline
                          SimulationofSai
                          wrote on last edited by
                          #13

                          WMI [^]is a good option. This[^] may also help.

                          SG

                          P 1 Reply Last reply
                          0
                          • S SimulationofSai

                            WMI [^]is a good option. This[^] may also help.

                            SG

                            P Offline
                            P Offline
                            plural
                            wrote on last edited by
                            #14

                            Thanks...would work that out Actually am working on a chat application in vb.net where it is asynchrounous and that each macine is act as a server and client and i wanted a way of displaying all computers on an LAN.

                            phatkin

                            S 1 Reply Last reply
                            0
                            • P plural

                              Thanks...would work that out Actually am working on a chat application in vb.net where it is asynchrounous and that each macine is act as a server and client and i wanted a way of displaying all computers on an LAN.

                              phatkin

                              S Offline
                              S Offline
                              SimulationofSai
                              wrote on last edited by
                              #15

                              IPMessenger??

                              SG

                              P 1 Reply Last reply
                              0
                              • S SimulationofSai

                                IPMessenger??

                                SG

                                P Offline
                                P Offline
                                plural
                                wrote on last edited by
                                #16

                                no not ip messenger. this is smaller than that one fo ra project. am trying to use shell cmd net view to get the computers and use a text file cos i can see my way around the rest but the storing to the text file gives me problems says file not found

                                phatkin

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups