Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
I have apache set up, and it worked before i hooked up my router. I have all the ports i need forwarded, but i still can't connect by going to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Posts
    20

    Apache behind router.


    I have apache set up, and it worked before i hooked up my router.

    I have all the ports i need forwarded, but i still can't connect by going to my external IP address.

    it does work however when i do http://127.0.0.1 so i know it isn't a config problem.

    Can anyone help?

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    What kind of router do you have? If you are using a Linksys router, they recommend that you use static IP for your home network when using port forwarding.
    The best things in life are free.

  3. #3
    Just Joined!
    Join Date
    Jun 2003
    Posts
    20
    Ok, i did that, and now i have another problem

    [root@localhost root]# service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 24.136.169.112:81
    no listening sockets available, shutting down
    [FAILED]

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    You are using Red Hat linux? I'm guessing this by the format of the shell prompt.

    What is your public IP, the one that your ISP gives you? What is your machine's IP on the network?
    The best things in life are free.

  6. #5
    Just Joined!
    Join Date
    Jun 2003
    Posts
    20
    Yeah Im on RedHat.

    i used www.whatismyip.com to get my external ip which is
    24.136.169.112

    and my local ip is 192.168.1.8

  7. #6
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    Hi Matt,

    I had a similar problem. I was not able to get to my website from my network by using the domain name. Everyone else was able to get to it just fine. My webserver is running FreeBSD and I just could not get to it from my RH or XP box.

    I was told that it happens with certain hardware routers. I added an entry to my /etc/hosts file and that solved the problem.

    HTH
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

  8. #7
    Just Joined!
    Join Date
    Jun 2003
    Posts
    20
    yeah, i got that problem fixed, now i can't start httpd, i get the following error

    [root@localhost root]# service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 24.136.169.112:81
    no listening sockets available, shutting down
    [FAILED]


    but thanx anyways

  9. #8
    Just Joined!
    Join Date
    Jun 2003
    Posts
    20
    I figured it out.

    Thanks for all the help

  10. #9
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    What was the problem?
    The best things in life are free.

  11. #10
    Just Joined!
    Join Date
    Jun 2003
    Posts
    20
    In the linux config file i had

    Listen 24.136.175.195:81

    Which worked before i hooked up my router.
    However now that i hooked up my router that wouldn't work.
    and i checked my IP address and found that it was now.
    24.136.169.112
    So i put:

    Listen 24.136.169.112:81

    and it gave me this error when i started apache:

    [root@localhost root]# service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 24.136.169.112:81
    no listening sockets available, shutting down
    [FAILED]


    so then i just put
    Listen *:81

    I don't really understand why Listen 24.136.169.112:81 wouldn't work.

Page 1 of 2 1 2 LastLast

Posting Permissions

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