Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have lighttpd setup on a machine (say ip is with following details.

inet addr :
Bcast :
Mask :

I can access my site on this computer by using firefox http://localhost/index.html.

Now I am trying to access this site from another computer with following details

inet addr :
Bcast :
Mask :

But it says 'access denied'.

nmap gives the following output.

22/tcp   open  ssh
80/tcp   open  http
1234/tcp open  hotline
3306/tcp open  mysql
9418/tcp open  git

Following is the output of iptables -L -n -v on

 141 11207 ACCEPT     tcp  --  *      *             tcp dpt:80 
    0     0 ACCEPT     tcp  --  *      *             tcp dpt:80 

FORWARD and OUTPUT section empty.

What is wrong with all this?

share|improve this question

3 Answers 3

Perhaps lighttp is configured to only listen on the localhost IP address ( while you need it to listen on all of them (typically

share|improve this answer

The problem was with proxy authentication step. I had to add in no-proxy variables in my browser and everything worked smoothly.

share|improve this answer
Now that you have your solution, you should mark this as the answer (the checkmark to the left) – gWaldo Jun 8 '12 at 12:30
I have to wait for 2 days to accept my own answer. StackOverflow policy. – Dilawar Jun 8 '12 at 13:05

Enable prerouting in you iptables because your both machine's subnet masks are different.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.