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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
How do I find out my external IP? I've got a dynamic ip address and dont know what it is...
I used ifconfig and it says my inet addr is 192.168.1.96 for eth0. I was searching the forum and found that that's an internal ip only? I ha da friend try and ping it and he just timed out, so I gues that's true. How do I get my real IP?? Thanks for any help.
Originally posted by Jakkyl Thanks, that was easy enough... is there anyway to find it out from the commandline?
Well the problem is that the computer you are using really does NOT know its "Real IP" See, the 192.* address IS the IP it has and the only one it knows....the way it works, is that it also knows that there's a gateway somewhere (whether its a router you bought or a machine you set up) and when it sends a packet to say...225.154.whatever whatever, it sends the packet to the gateway...and the gateway sends it out itself with the "real IP" as the return address...then when it gets the reply, it knows to pass it along to YOUR machine (ie: the one at 192.*)
See, the real IP is the address of your gateway or router or whatever you wish to call it...
Now for my system, I have a linux machine acting as a router/gateway, so when I need to know my IP (ie: the real one assigned from my ISP and not the one given to my internal machines), I just SSH over to it and do an ifconfig eth0.
The thing of it is, I'm trying to get Apache set up so I can run a web server from my comp. when I got to localhost it pulls up the page, but when I type in this new ip, i get a message box that says 'connection refused when connectiing to...' And ive got no clue...
Are you running this behind a cable/DSL modem router? If so, you need to setup port forwarding on your router (port 80 for http) and have it forward requests to the internal IP address. Sounds to me like you get it setup correctly (if you can do the localhost name and get a page). Can you use the internal IP and still get a page to display? If so, I would say you have everything correct (in your setup) and need to check on the port forwarding.
are you directly connecting from the modem to the PC? Or are you using a router between the modem and PC?
if your using a router (which i figure you are b/c your getting an internal IP), you need to configure the router to forward your ports. You can do this by connecting to the router (generally the IP of the router it 192.168.1.1) via your web browser. With my linksys router, I go to "advanced" tab. then to the "forwarding" tab. Then, forward the external port 80 to you internal IP of your webserver (which should be something like 192.168.1.x).
if you not using a router and you are directly connecting your DSL modem and PC then you might have some problems. I was using Verizon DSL and some how they disabled incoming requests. I never got it working.
I hope this helps if not post again what kind of router you are using, or if your using one at all.