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. The Lounge
  3. Stupid networking tricks

Stupid networking tricks

Scheduled Pinned Locked Moved The Lounge
sysadminhelp
23 Posts 9 Posters 4 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.
  • S Slacker007

    John Simmons / outlaw programmer wrote:

    I tried to terminal service into one of the boxes by using its machine name, and it couldn't connect. I puzzled over this for most of the day, and fxed it last night when I had a thought about what might be the problem.

    The box in question was turned off?

    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

    realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #12

    Nope - all of the machines were turned on at the time.

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

    1 Reply Last reply
    0
    • C CodyDaemon

      Was it you had manually set the hostname in the HOSTS file, but didn't update file(s) when you did the rejig?

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #13

      This is the correct answer. The IPs no longer matched what was listed in the HOSTS file.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

      C M 2 Replies Last reply
      0
      • C CodyDaemon

        Was it you had manually set the hostname in the HOSTS file, but didn't update file(s) when you did the rejig?

        A Offline
        A Offline
        Anders Molin
        wrote on last edited by
        #14

        Ah, you just beat me to it...

        - Anders

        1 Reply Last reply
        0
        • realJSOPR realJSOP

          This is the correct answer. The IPs no longer matched what was listed in the HOSTS file.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

          C Offline
          C Offline
          CodyDaemon
          wrote on last edited by
          #15

          The reason I guessed it was this is simple, I have done it before. :doh:

          1 Reply Last reply
          0
          • C CodyDaemon

            Was it you had manually set the hostname in the HOSTS file, but didn't update file(s) when you did the rejig?

            B Offline
            B Offline
            BobJanova
            wrote on last edited by
            #16

            This would have been one of the first places I looked, as well. HOSTS is evil.

            realJSOPR 1 Reply Last reply
            0
            • B BobJanova

              This would have been one of the first places I looked, as well. HOSTS is evil.

              realJSOPR Offline
              realJSOPR Offline
              realJSOP
              wrote on last edited by
              #17

              I use the HOSTS file to prevent the prowser from visitng web sites (ads, etc) that could introdece problems on my systems. When a url in the file is found on a web page, my browser displays a hazardous waste logo where the ad would have shown up.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

              B D 2 Replies Last reply
              0
              • realJSOPR realJSOP

                I use the HOSTS file to prevent the prowser from visitng web sites (ads, etc) that could introdece problems on my systems. When a url in the file is found on a web page, my browser displays a hazardous waste logo where the ad would have shown up.

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                B Offline
                B Offline
                BobJanova
                wrote on last edited by
                #18

                Interesting approach. That is actually quite a good use of it, a kind of client side blacklist. I have also had to put things in the HOSTS file, as you must have done to cause this problem, to get some Windows networking stuff to operate correctly. I'm sure it shouldn't be necessary but Windows networking seems to be quite fragile, to the extent that sometimes I either email files to myself to transfer them, or host them on a local HTTP server and fetch them. TCP and DNS often work even when net view etc don't.

                realJSOPR 1 Reply Last reply
                0
                • realJSOPR realJSOP

                  I use the HOSTS file to prevent the prowser from visitng web sites (ads, etc) that could introdece problems on my systems. When a url in the file is found on a web page, my browser displays a hazardous waste logo where the ad would have shown up.

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #19

                  I've got hundreds of entries in my HOSTS file for just this purpose. How, then, did it affect your LAN?

                  "One man's wage rise is another man's price increase." - Harold Wilson

                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                  "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                  realJSOPR 1 Reply Last reply
                  0
                  • D David Crow

                    I've got hundreds of entries in my HOSTS file for just this purpose. How, then, did it affect your LAN?

                    "One man's wage rise is another man's price increase." - Harold Wilson

                    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                    "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                    realJSOPR Offline
                    realJSOPR Offline
                    realJSOP
                    wrote on last edited by
                    #20

                    The IPs didn't match, and it looks like Terminal Services uses what's in the HOSTS file to resolve machine names to IP addresses. If there's nothing in the hosts file, I assume that it just looks for the machine name on the network. Since the IPs were wrong in the file, it couldn't connect to the specified machine name.

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                    1 Reply Last reply
                    0
                    • B BobJanova

                      Interesting approach. That is actually quite a good use of it, a kind of client side blacklist. I have also had to put things in the HOSTS file, as you must have done to cause this problem, to get some Windows networking stuff to operate correctly. I'm sure it shouldn't be necessary but Windows networking seems to be quite fragile, to the extent that sometimes I either email files to myself to transfer them, or host them on a local HTTP server and fetch them. TCP and DNS often work even when net view etc don't.

                      realJSOPR Offline
                      realJSOPR Offline
                      realJSOP
                      wrote on last edited by
                      #21

                      My most annoying issue right now is that no matter what I do, some of the machines on the LAN can't map remote shares when I reboot the machine. If I go into Explorer and click on the share, it searhes for it and finds it, and then everything is good. (All machines are running the same version of windows 7 and are caught up on the latest patches.)

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                      1 Reply Last reply
                      0
                      • realJSOPR realJSOP

                        This is the correct answer. The IPs no longer matched what was listed in the HOSTS file.

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                        M Offline
                        M Offline
                        Mike Marynowski
                        wrote on last edited by
                        #22

                        Why on earth are you manually entering hostnames in HOSTS? Built-in name resolution protocols not fancy enough for you? lol.

                        realJSOPR 1 Reply Last reply
                        0
                        • M Mike Marynowski

                          Why on earth are you manually entering hostnames in HOSTS? Built-in name resolution protocols not fancy enough for you? lol.

                          realJSOPR Offline
                          realJSOPR Offline
                          realJSOP
                          wrote on last edited by
                          #23

                          I don't remember why I was doing it...

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                          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