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!
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.
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.
So I can login localy whit http://localhost/ I was trying to find a howto on how I could login to it remotly but so far I got nothing and was hopeing someone here could help.
Forgive me if I'm wrong, but this is how I read your question
Have you tried your machines IP from another PC?
for example, I have a LAMP setup, which I can view using http://localhost on the machine. To view this remotely I use http://192.123.22.22 (just an example), it then sends out requests for whatever is in the document root of the LAMP.
Perhaps your problem is not that simple, are you sure your box can connect to the internet? and there is no firewall or any other network issue that would stop incoming connections?
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251
Rep:
First run something like whatsmyip, I use www.ipchicken.com . This will tell you what your IP address is (not your machine IP but the modem ID of your internet connection. (If you need your machines IP, please tell me and we can go through that) In most cases your ISP (internet service provider) will assign you a set of dynamic IP addresses so this can change from time to time. Example 68.145.111.11 (this is what the out side world see's and your address would be something like that) This address will change from time to time and I suggest signing up for the free service www.dyndns.com (this refreshes your IP every month and if changes it does it for you, it also gives you a free domain name instead of using an IP to connect)
Once you have the address you can try accessing from a remote location, I don't know where you are trying to access it from but I would guess work or school or something like that. The perfect example that I can think of is to put in your URL bar something like this: 68.145.111.11:80 . The reason for port 80 is because your server (linux box) is running that by default (so if you have't changed the port that should display something like a Apache Test Page. If you don't get this then you need to check the following:
1) are you behind a router? if so you need to open the port which matches to your httpd.conf file (by default this is port 80)
2) if your not behind a router then make sure that the httpd.conf file has the correct settings (from the sounds of it, it should, since you can see local host).
3) if you don't have a router it could be the firewall with in linux, make sure you open the HTTP.
Hope this helps somewhat, could be a little much and somewhat confusing but should give you some insight. Good Luck!
Sorry about the late reply, I was on vacation whitch is way I wanted this to work. So I could use torrentflux and stuff from my laptop. I'm home again but would still like to get it working.
I have made accounts whit both dyndns and no-ip, both have preconfiggured settings in my router.
Port 80 is forwarded to this machine.
I get an error everytime I start apache2: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
So I'm guessing there maybe something there?
I'v had a home network for years so I know a little about IPs and ports and stuff.
But now I have no way of testing remotley so...
Useing my external IP from here (home) i get "The server at **.***.***.*** is taking too long to respond" or "timout on server **.***.***.*** on port 80"
I'll try reading up on apache a bit more allthough the info I find mostly seem like greek.
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251
Rep:
well if apache isn't starting correctly then that would explain a lot. because i am still a bit of a newbie we might be at a dead-end, like i cant trouble shoot apache. i basically re-install FC5 every time i have a problem LOL. let me know what you have found out? are you starting the HTTPD service correctly?
What you need to connect to the outside is a different IP and setup. What you are using, or what is shown to us, is a local IP address(127.0.0.1).
With this IP you can connect locally, usually only on that PC(from my exp).
I need more information, to really help. For example how do you connect to the internet? I assume you have a constant connection like DSL or Cable.
If you do then you have a WAN IP address which looks the the IP that someone posted above 68....
If I login to my router I can choose "static IP" and choose from a list of computers connected to my router.
What this does, is if I choose a particular computer to be assigned this WAN IP, then if you use this WAN IP on the Live Internet it will go to your router and then to the pc which is assigned this WAN IP. From there provided your server is running, it will detect when an incoming request comes in on port 80.
You can access your apache via localhost, so it's up and running. it's a matter of linking you to the "real" world. Remember you cannot use any of these 127... numbers on the internet and expect to arrive at your home.
There is actually a system to these numbers. If you lookup tcp/ip you can read about it.
I know that, witch is why I have made accounts with dyndns and no-ip that I explained above. If you had bothered to read my last post you would have seen that I symbolized my real ip like this **.***.***.*** and I allready said I don't have a static ip witch is why I have to use a dynamic one hence the dyndns and no-ip and so on. Not that it has ever changed.
Besides I do get in from other computers on my local network useing my local ip 192.168.2.1 so I know that the loop address only works on this machine.
If I ping my no-ip account it says it's getting trough to my router and my router/modem has port 80 forwarded to the apache machine but it still times out. And I'm sure I said that before too.
EDIT: And now I see he's only made this one post...fu**
"I can't think of anything clever to say right now..."
nor will you ever, you mental midgit.
first of all I was pointing out that you can use a static setup with a dynamic wan, but you're so bright you can't see it. but you're not worth helping.
You deserve to get exactly what you have coming...
What goes around comes around
Some advice to the unprofessional.
try not being such a rear-end, and you might get somewhere. Others will see how nice you are, and they will just jump to help you, i'm sure.
Take the weekend and try very very hard to come up with something clever. I know you have it in you, you can do it tripmix (what a corny name).
There is no glory in beating up the mentally challenged, but it's late and i'm bored.
I tried to honestly help, and I did read your retarded plea for help. So now that you blast me for it, I say Go %^&^&(*&^%$#
Worst Wishes
EDIT:
I'm sorry I just realized why you're the way you are. I just saw your profile.
I also looked at you posts. Maybe you should reduce the number of posts by RTFM more often.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.