Linux - Newbie This 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! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-28-2007, 05:41 PM
|
#1
|
LQ Newbie
Registered: Sep 2007
Posts: 13
Rep:
|
How do you know if IP address is accessible on the net?
Hello.
I am a total Linux / website admin noob (just need to make that clear early).
I have recently installed Ubuntu onto an old pc, and also Apache and PHP. I have copied a static website to /var/www/
I have opened port 80, and also port 22. I accessed my server using PuTTy from my XP machine. But, I am not sure if my web server is accessible online. When I type the IP address into my XP computer, I see the website, but I am not sure if that is just because the computers are all on the same router and that the connection is not over the internet. How do I know if the connection is working or not? I don't want to give my IP address out, for security reasons, as I probably (I am guessing) need to set up a more secure server before doing that. So other than asking somone to look, how can I determine it is online from home?
My next task is to set up name servers / DNS (?) so that I can actually host a domain. But for now, I need to be sure I have at least got my site online.
So, how can I check from my home network?
Cheers,
Jon.
|
|
|
09-28-2007, 05:49 PM
|
#2
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
If you have forwarded the ports to the Ubuntu machine in your router configuration, then the machine is available from the Internet.
But the only way anyone is going to be able to see it is if you give them your IP address.
|
|
|
09-28-2007, 05:51 PM
|
#3
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
Try to go to the IP address from an external host. Yes, you need to test from the other side of the router.
Note: 127.*.*.*, 10.*.*.*, 192.168.*.*, and 172.16.*.* through 172.31.*.* are all private IP ranges, and are not routable on the public Internet. So if you're connecting to an IP in that range, it won't work, and you need to determine your public IP address, for example by hitting http://ip.dnsexit.com
|
|
|
09-28-2007, 05:55 PM
|
#4
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
If you set up your browser to pass traffic through a public proxy server, that is a reasonable test to see if your site is accessible from locations outside your own network. One option is TOR.
|
|
|
09-28-2007, 06:07 PM
|
#5
|
LQ Newbie
Registered: Sep 2007
Location: St. Louis, MO
Distribution: Ubuntu & derivatives, Fedora
Posts: 19
Rep:
|
try connecting through a third-party proxy. that would, in theory, allow you to access it from the net and be sure that the local machine is not just connecting to itself
|
|
|
09-28-2007, 07:27 PM
|
#6
|
LQ Newbie
Registered: Sep 2007
Posts: 13
Original Poster
Rep:
|
Thanks for the advice. I have heard of Tor, and I even think that i have an application on a magazine cover disk somewhere. I'll take a look tomorrow.
Failing that, what is the easiest way to use Tor / proxy?
|
|
|
09-28-2007, 08:22 PM
|
#7
|
LQ Newbie
Registered: Sep 2007
Posts: 13
Original Poster
Rep:
|
Ok, this may have proved that I am online. I just took a look at the logs i.e. /var/log/apache2/access.log and in it there are a couple of IP addresses that are not mine, they belong to Google. I have Adsense on the site, so I guess that this is the Google bot, and if they can get in, anyone can. So I must be online. So that's nice to know.
Just need to direct one of my domains to my home web server now. Does anyone know a useful tutorial for this? Or, is there a recommended control panel for Ubuntu? I have heard of cpanel, is that user friendly, and free?
Cheers
Jon.
|
|
|
09-28-2007, 08:41 PM
|
#8
|
Member
Registered: Sep 2007
Distribution: Fedora 7, Edubuntu
Posts: 35
Rep:
|
Just if you do not know:
You can try access the web server by http://--external--router--IP rather than http://192.168.x.y
If you do not know your router's external IP, you can login to your router and check.
|
|
|
09-30-2007, 12:36 PM
|
#9
|
LQ Newbie
Registered: Sep 2007
Posts: 13
Original Poster
Rep:
|
Excellent. I can see it using the external IP. Being the noob that I am, I was just unsure if seeing it suing the external IP on the local network was the same as seeing it from another network. Wow, so I actually have a website up and running. Just need to sort out that DNS thing now.
|
|
|
All times are GMT -5. The time now is 10:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|