Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I'm trying to set a server for a friend of mine : Router : 192.168.1.1 Server : 192.168.1.56 The problem is "simple" : I can "wget www.youtube.com" but I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    1

    Half internet


    Hello,

    I'm trying to set a server for a friend of mine :

    Router : 192.168.1.1
    Server : 192.168.1.56

    The problem is "simple" : I can "wget www.youtube.com" but I can't "wget www.google.com" (although I can ping it), I really don't understand where is the logic !?

    The "wget www.google.com" give me this :
    Code:
    caribou@serverkao:~$ wget www.google.com
    --02:14:28--  http://www.google.com/
               => `index.html.1'
    Resolving www.google.com... 209.85.135.147, 209.85.135.99, 209.85.135.103, ...
    Connecting to www.google.com|209.85.135.147|:80... connected.
    HTTP request sent, awaiting response...
    And let me wait like this !

    Here is my /etc/network/interfaces :
    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    
    auto eth0
    iface eth0 inet static
            address 192.168.1.56
            netmask 255.255.255.0
            gateway 192.168.1.1
    If you have some ideas...

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    maybe the server was busy then
    did you try visiting it in browser?

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    wget has its own user agent string. It is possible that it is blocked, though I can't imagine why, particularly from Google.

    It is possible to spoof a string from Firefox or Internet Explorer. Use the U or user-agent switch along with one from the browser you'd like to spoof.

    Code:
    wget -U "Mozilla/5.0 (X11; U; Linux x86_64; pt-BR; rv:1.9b5) Gecko/2008041515 Firefox/3.0b5" www.google.com
    wget --user-agent="Mozilla/5.0 (X11; U; Linux x86_64; pt-BR; rv:1.9b5) Gecko/2008041515 Firefox/3.0b5" Google

Posting Permissions

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