can’t see my webpage after lauch apache(in ubuntu)

IP Address Questions and AnswersCategory: Linux Networkingcan’t see my webpage after lauch apache(in ubuntu)
Eric Lin asked 3 years ago

Dear expert:
after i launch apache, I can see my index.html when
I type in localhost in url of my firefox browzer, and
I use whatismyip to get my external ip. then I type
in this external ip in my browzer, I wait a long time, firefox reply, time out. why? can anyone help?

second question: in my linux/ubuntu console, after
I sudo su as root, I type in ifconfig to see my network info, why I can not see my ip there as shown by 's external ip?
[email protected]:/home/XXXX# ifconfig
eth0 Link encap:Ethernet HWaddr 40:61:86:14:XX:XX
inet addr:192.168.1.XXX Bcast: Mask:
inet6 addr: fe80::4261:86ff:fe14:XXXX/XX Scope:Link never show inet6(is that ipv6?)
as linux/ubuntu(linux kernel 2.6.38-10) do.
so my question is does linux have any command to see
that external ip as show? and are there any company can show what my linux box's ifconfig show(inet6 line above)?

thanks your help a lot in advance, sincerely, Eric

1 Answers
Shnerdly Staff answered 3 years ago

Thanks for your question fsshl.

Please do not put you email address in your posts. It will be removed ever time and will ultimately result in your posts requiring approval before they become public.

To see your webpage by your external IP, you need to forward port 80 in your router to the internal IP of the Ubuntu machine. Depending on your router, you may also need to add a NAT Loopback to your router to see the webpage at your external IP address from inside your LAN.

The ifconfig command in Linux is the same as the ipconfig command in Windows. It only shows the internal IP.

Yes, the inet6 addr is the IPv6 IP address. Ubuntu or your router may be assigning it but your ISP is probably not using IPv6 yet. Not very many are.

To see your external IP on the Ubuntu machine, go to the desktop and run the browser and go to our home page. It will be the same as all other computers connected to your router.

Know the answer? Login or sign up for an account to answer this question.
Sign Up