Note that there are some explanatory texts on larger screens.

plurals
  1. POApache: How can i see my localhost on 192.168.1.101 from 192.168.1.102?
    primarykey
    data
    text
    <p>I'm running Apache on Ubuntu. My IP address is 192.168.1.101</p> <p>While <a href="http://localhost" rel="nofollow">http://localhost</a> and <a href="http://192.168.1.101" rel="nofollow">http://192.168.1.101</a> work fine in my PC, I cannot access it from within my laptop using <a href="http://192.168.1.102" rel="nofollow">http://192.168.1.102</a></p> <p>It's strange. I can ping 192.168.1.101 but I got "<strong>The connection has timed out</strong>." in browser.</p> <p>I'm using default apache config. so this is what my <code>sites-available/default</code> looks like:</p> <pre><code>NameVirtualHost *:80 &lt;VirtualHost *:80&gt; ServerAdmin webmaster@localhost DocumentRoot /home/www/public_html &lt;Directory /&gt; Options FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory /home/www/public_html&gt; Options Indexes FollowSymLinks MultiViews #AllowOverride None AllowOverride all Order allow,deny allow from all &lt;/Directory&gt; </code></pre> <p><code>/etc/apache2/posrts.conf</code> NameVirtualHost *:80 Listen 80</p> <pre><code>&lt;IfModule mod_ssl.c&gt; # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to &lt;VirtualHost *:443&gt; # Server Name Indication for SSL named virtual hosts is currently not # supported by MSIE on Windows XP. Listen 443 &lt;/IfModule&gt; &lt;IfModule mod_gnutls.c&gt; Listen 443 &lt;/IfModule&gt; </code></pre> <p>my laptop runs Ubuntu as well. so I don't think this is a firewall issue.</p> <p>commands executed in Laptop (192.168.1.102):</p> <pre><code>adp@adp-laptop:~$ ping 192.168.1.101 PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data. 64 bytes from 192.168.1.101: icmp_seq=1 ttl=64 time=32.1 ms 64 bytes from 192.168.1.101: icmp_seq=2 ttl=64 time=54.8 ms 64 bytes from 192.168.1.101: icmp_seq=3 ttl=64 time=77.0 ms 64 bytes from 192.168.1.101: icmp_seq=4 ttl=64 time=100 ms ^C --- 192.168.1.101 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 32.193/66.193/100.717/25.463 ms adp@adp-laptop:~$ telnet 192.168.1.101 80 Trying 192.168.1.101... telnet: Unable to connect to remote host: Connection timed out </code></pre> <p>commands executed in PC (192.168.1.101):</p> <pre><code>adp@adp-desktop:~$ ps afx | grep http 12672 pts/4 S+ 0:00 | \_ grep --color=auto http adp@adp-desktop:~$ ping 192.168.1.102 PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data. 64 bytes from 192.168.1.102: icmp_seq=1 ttl=64 time=32.1 ms 64 bytes from 192.168.1.102: icmp_seq=2 ttl=64 time=54.8 ms 64 bytes from 192.168.1.102: icmp_seq=3 ttl=64 time=77.0 ms 64 bytes from 192.168.1.102: icmp_seq=4 ttl=64 time=100 ms ^C --- 192.168.1.102 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 32.193/66.193/100.717/25.463 ms adp@adp-desktop:~$ telnet 192.168.1.102 80 Trying 192.168.1.102... telnet: Unable to connect to remote host: Connection refused adp@adp-desktop:~$ telnet 192.168.1.102 Trying 192.168.1.102... telnet: Unable to connect to remote host: Connection refused </code></pre> <p>What should i do?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload