Results 1 to 7 of 7

Thread: Unable to contact Apache server in local gateway computer

  1. #1
    Join Date
    Aug 2009
    Location
    India, Tamilnadu
    Beans
    206
    Distro
    Kubuntu 15.10 Wily Werewolf

    Unable to contact Apache server in local gateway computer

    Hi all,
    I have two kubuntu PC's connected via lan (12.04 and 11.04). I have apache installed in 12.04 PC and its working fine on localhost.

    I did a lan setup to use 12.04 as a gateway for 11.04 so i can share my mobile broadband over lan.

    Now internet sharing is working fine.

    but I cant view 12.04 PC's webpage... if I enter 12.04 IP address in 11.04 web brwoser it gives me an error request timeout!..

    I not well in networking ... Is there is any way to fix it??

    Thanks in advance

  2. #2
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to contact Apache server in local gateway computer

    in the 11.04 type:
    Code:
    route
    the gateway should be the ip address of 12.04 from pc 11.04

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  3. #3
    Join Date
    Aug 2009
    Location
    India, Tamilnadu
    Beans
    206
    Distro
    Kubuntu 15.10 Wily Werewolf

    Re: Unable to contact Apache server in local gateway computer

    Quote Originally Posted by fdrake View Post
    in the 11.04 type:
    Code:
    route
    the gateway should be the ip address of 12.04 from pc 11.04
    Here is the output:

    Code:
    baskar@baskar-desktop:~$ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    link-local      *               255.255.0.0     U     1      0        0 eth0
    default         169.254.43.84   0.0.0.0         UG    0      0        0 eth0
    baskar@baskar-desktop:~$
    12.04 ip address 169.254.43.84 is correct
    Last edited by baskar007; February 25th, 2013 at 11:36 AM. Reason: added last line.. :)

  4. #4
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to contact Apache server in local gateway computer

    Code:
    less /etc/apache2/sites-enabled/000-default
    also nmap may help too , checking if you have port 80 closed
    Code:
    nmap -p 80 169.254.43.84
    also try to stop the bridge service and try to connect to the server, are you abel to connect like that. Your bridge configuration may creat problem to the apache server(port 80). If that is the problem, you could switch the position. make the other computer the bridge and attach the webserver to it.
    Last edited by fdrake; February 25th, 2013 at 09:25 PM.

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  5. #5
    Join Date
    Aug 2009
    Location
    India, Tamilnadu
    Beans
    206
    Distro
    Kubuntu 15.10 Wily Werewolf

    Re: Unable to contact Apache server in local gateway computer

    Thanks fdrake.
    Here is the output of nmap -p 80 169.254.43.84

    Code:
    baskar@baskar-desktop:~$ nmap -p 80 169.254.43.84
    
    Starting Nmap 5.21 ( http://nmap.org ) at 2002-01-01 05:02 IST
    Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
    Nmap done: 1 IP address (0 hosts up) scanned in 3.13 seconds

    As nmap suggest (with PN argument)


    Code:
    baskar@baskar-desktop:~$ nmap -p 80 169.254.43.84 -PN
    
    Starting Nmap 5.21 ( http://nmap.org ) at 2002-01-01 05:03 IST
    Nmap scan report for 169.254.43.84
    Host is up.
    PORT   STATE    SERVICE
    80/tcp filtered http
    
    Nmap done: 1 IP address (1 host up) scanned in 2.44 seconds
    baskar@baskar-desktop:~$

  6. #6
    Join Date
    Aug 2009
    Location
    India, Tamilnadu
    Beans
    206
    Distro
    Kubuntu 15.10 Wily Werewolf

    Talking [SOLVED] Unable to contact Apache server in local gateway computer

    OK. Finally I got it.
    Just added 11.04 IP to "Allow connections from host" policy in firestrater firewall application. Now my web server working fine...

    Quote Originally Posted by baskar007 View Post
    Thanks fdrake.
    Here is the output of nmap -p 80 169.254.43.84

    Code:
    baskar@baskar-desktop:~$ nmap -p 80 169.254.43.84
    
    Starting Nmap 5.21 ( http://nmap.org ) at 2002-01-01 05:02 IST
    Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
    Nmap done: 1 IP address (0 hosts up) scanned in 3.13 seconds

    As nmap suggest (with PN argument)


    Code:
    baskar@baskar-desktop:~$ nmap -p 80 169.254.43.84 -PN
    
    Starting Nmap 5.21 ( http://nmap.org ) at 2002-01-01 05:03 IST
    Nmap scan report for 169.254.43.84
    Host is up.
    PORT   STATE    SERVICE
    80/tcp filtered http
    
    Nmap done: 1 IP address (1 host up) scanned in 2.44 seconds
    baskar@baskar-desktop:~$

  7. #7
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [SOLVED] Unable to contact Apache server in local gateway computer

    Quote Originally Posted by baskar007 View Post
    OK. Finally I got it.
    Just added 11.04 IP to "Allow connections from host" policy in firestrater firewall application. Now my web server working fine...
    i could not reply earlier but I am glas you were able to cong the firewall.

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

Bookmarks

Posting Permissions

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