Unable to run webpage on local server using ip in the url
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Maybe you lack the first line, and so you cannot route your queries.
Then check your routing table; take a look at mine: (some more stuff appears, but not relevant now)
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Iface
169.254.0.0 0.0.0.0 255.255.255.0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 lo
This way you tell: "All the packets travelling to hosts beginning with 169.254...., use eth0 interface (network card)"
"All packets to 127.0.0.1 (the host where you are sitting) use "lo" (loopback) interface", which means, don't try to go outside the machine.
If your IP address is 10.90.45.87
and your netmask is 255.255.255.252
then your "network address" is 10.90.44.0
This is as a result of binary routing theory. You can learn some basics googleing subnet+howto
Here, the first line means "when looking for any element within my subnet (10.90.44.0), use 0.0.0.0 gateway (your network card)"
Second line means "for the rest of IP addresses (0.0.0.0) use the gateway 10.90.44.1(which should be your modem/router internal IP address )"
[root@tmpRH8 SQLBean]# ping 10.90.45.111
PING 10.90.45.111 (10.90.45.111) 56(84) bytes of data.
64 bytes from 10.90.45.111: icmp_seq=1 ttl=128 time=0.359 ms
64 bytes from 10.90.45.111: icmp_seq=2 ttl=128 time=0.194 ms
64 bytes from 10.90.45.111: icmp_seq=3 ttl=128 time=0.171 ms
64 bytes from 10.90.45.111: icmp_seq=4 ttl=128 time=0.196 ms
64 bytes from 10.90.45.111: icmp_seq=5 ttl=128 time=0.191 ms
64 bytes from 10.90.45.111: icmp_seq=6 ttl=128 time=0.195 ms
+ Stopped ping 10.90.45.111
[root@tmpRH8 SQLBean]# telnet 10.90.45.111 8080
Connected to 10.90.45.111.
Escape character is '^]'.