Find the answer to your Linux question:
Results 1 to 8 of 8
I am using CrunchBang Waldorf. I am attempting to run webhttrack. I started it and got this message: Unable to connect Iceweasel can't establish a connection to the server at ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2008
    Posts
    166

    Webhttrack: unable to connect


    I am using CrunchBang Waldorf.
    I am attempting to run webhttrack. I started it and got this message:
    Unable to connect
    Iceweasel can't establish a connection to the server at crunchbang:8080.
    The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    If you are unable to load any pages, check your computer's network
    connection.
    If your computer or network is protected by a firewall or proxy, make sure
    that Iceweasel is permitted to access the Web.
    I can start the program as root, but would rather use the program as a normal user. What could be stopping it?

    Thanks

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    hi,

    what is the full webhtrack command that you are running in the terminal?

    can your regular user access the site you are trying to track in a browser?

  3. #3
    Linux Newbie
    Join Date
    Dec 2008
    Posts
    166
    I just enter the program name in the terminal: wwebhttrack. As a normal user it gives me the error message, as root it will open the program in a browser, after that I will enter the information. Yes I can get access to the site.They give directions how to download it.

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by JoeS View Post
    I just enter the program name in the terminal: wwebhttrack. As a normal user it gives me the error message, as root it will open the program in a browser, after that I will enter the information. Yes I can get access to the site.They give directions how to download it.
    are you on a system that is not administered by you? or, are you using iptables or some other software/filter to control regular users' access to applications/ports?

    personally, i would want to know *why* a regular user cannot use the webhtrack program. but certainly if you are administrator on your box, a quick sudo rule would allow your regular user to run it as root.

  6. #5
    Linux Newbie
    Join Date
    Dec 2008
    Posts
    166
    I can use this program as root, but would rather use it as a normal user and was wondering how I could do that. This is a personal computer. I have CrunchBang installed and am not that familiar with it and didn't get any help on that forum.

    Thanks

  7. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by JoeS View Post
    I can use this program as root, but would rather use it as a normal user and was wondering how I could do that.
    Is the sudo option I offered not to your liking? I still don't understand why you are not able to connect to a website. Did you try other websites? Can you wget that website? e.g.:


    Code:
    wget http://crunchbang:8080
    btw, that is just your local machine, right? is something (a web server/service) actually running on port 8080?

    check with:

    Code:
    netstat -tulnp|grep :80
    nmap -n localhost

  8. #7
    Linux Newbie
    Join Date
    Dec 2008
    Posts
    166
    I didn't want to run as sudo because I thought it wasn't good to run a program over the net as root. Am I not thinking right?

    Code:
    root@crunchbang:~# wget http://crunchbang:8080
    --2014-02-19 12:36:51--  http://crunchbang:8080/
    Resolving crunchbang (crunchbang)... 127.0.1.1
    Connecting to crunchbang (crunchbang)|127.0.1.1|:8080... failed: Connection refused.
    Code:
    netstat -tulnp|grep :80
    No output

    Code:
    root@crunchbang:~# nmap -n localhost
    
    Starting Nmap 6.00 ( http://nmap.org ) at 2014-02-19 12:38 MST
    Nmap scan report for localhost (127.0.0.1)
    Host is up (0.0000080s latency).
    Not shown: 999 closed ports
    PORT    STATE SERVICE
    631/tcp open  ipp
    
    Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
    This is a local machine. I installed Crunchbang a few months ago and am not sure how this is set up and don't understand that much about networking.

    Thanks

  9. #8
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by JoeS View Post
    I didn't want to run as sudo because I thought it wasn't good to run a program over the net as root. Am I not thinking right?
    nope, you are right. best to find the cause of what is wrong.

    Code:
    root@crunchbang:~# wget http://crunchbang:8080
    --2014-02-19 12:36:51--  http://crunchbang:8080/
    Resolving crunchbang (crunchbang)... 127.0.1.1
    Connecting to crunchbang (crunchbang)|127.0.1.1|:8080... failed: Connection refused.
    that means that no web server is listening on port 8080 of the machine whose ip address resolves to "crunchbang". to clarify that, do:
    Code:
    host crunchbang
    ping crunchbang
    Code:
    netstat -tulnp|grep :80
    No output

    Code:
    root@crunchbang:~# nmap -n localhost
    
    Starting Nmap 6.00 ( http://nmap.org ) at 2014-02-19 12:38 MST
    Nmap scan report for localhost (127.0.0.1)
    Host is up (0.0000080s latency).
    Not shown: 999 closed ports
    PORT    STATE SERVICE
    631/tcp open  ipp
    
    Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
    those commands also indicate that nothing is running on port 8080 on your local box. port 8080 (along w/the more standard port 80) are typically reserved for webservers. so if your hostname is "crunchbang" then it seems that you are trying to clone a local webserver running on port 8080. is this the case? clearly, no webserver is currently running on your localhost, at any rate.

Posting Permissions

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