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 ...
- 10-04-2003 #1Just 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?
- 10-04-2003 #2Linux 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.
- 10-04-2003 #3Just 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]
- 10-04-2003 #4Linux 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.
- 10-04-2003 #5Just 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
- 10-04-2003 #6
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.
HTHI am on a journey to mastering Linux and I got a bloody long way to go!!!
- 10-04-2003 #7Just 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
- 10-04-2003 #8Just Joined!
- Join Date
- Jun 2003
- Posts
- 20
I figured it out.
Thanks for all the help
- 10-04-2003 #9Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
What was the problem?
The best things in life are free.
- 10-05-2003 #10Just 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.



