LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ifconfig not showing ip address (https://www.linuxquestions.org/questions/linux-newbie-8/ifconfig-not-showing-ip-address-4175593643/)

trumpforprez 11-16-2016 08:39 AM

ifconfig not showing ip address
 
I am looking to install openvpn.

Apparently, ifconfig will show my ip address under eth0.
However, the
Code:

inet addr:192.xxx.1.xx
is not my ip address.

Tutorials on openvpn seem to be saying the 'inet addr' must correspond with my ip address.

So what will I need to do before even installing openvpn?

Emerson 11-16-2016 09:41 AM

192.168.1.98 is a valid private address, this is what you get behind a NAT router.

trumpforprez 11-16-2016 09:56 AM

Quote:

Originally Posted by Emerson (Post 5631219)
192.168.1.98 is a valid private address, this is what you get behind a NAT router.

Thank you. So what is the command to find my correct ip address on linux?
I can get this info from websites but how do I get from my OS?

What is the point of ifconfig showing me a private address when the net can easily access my real ip?

Also, when I have to input my ip with openvpn, which ip do I choose?
The valid private address or my real ip address?

Emerson 11-16-2016 10:05 AM

I think you have some reading to do. Start here.

BW-userx 11-16-2016 10:24 AM

you shouldn't give out your actual IP address

this on is not obtainable but nevertheless better safe then sorry.

Emerson 11-16-2016 10:34 AM

My IP address is 209.124.235.14. Now what? My ports (as everyone else's) are scanned all the time, revealing my IP address will not change anything.

BW-userx 11-16-2016 10:54 AM

Quote:

Originally Posted by Emerson (Post 5631247)
My IP address is 209.124.235.14. Now what? My ports (as everyone else's) are scanned all the time, revealing my IP address will not change anything.

whatever dude, I am happy you can sleep good at night knowing your protected.

Emerson 11-16-2016 10:56 AM

Quote:

Originally Posted by BW-userx (Post 5631258)
whatever dude, I am happy you can sleep good at night knowing your protected.

This makes two pointless posts in this thread. Are you posting to increase your post count?

BW-userx 11-16-2016 10:58 AM

Quote:

Originally Posted by Emerson (Post 5631260)
This makes two pointless posts in this thread. Are you posting to increase your post count?

NOPE just going by what I've read on the internet as a rule of thumb.

you want to talk about pointless post look at this thread, a personal conversation between two with nothing to do with the OP

http://www.linuxquestions.org/questi...33#post5631133
just speculation on the possibilities .

trumpforprez 11-16-2016 11:01 AM

Well now I don't know what my ip address is.

On Whatsmyip, the site gave me my ip adress, the town I live in, and my net provider!
So I'm guessing it's my correct ip.

But why is ifconfig giving me a different ip address?

Also, does anyone not have openvpn?
I thought almost everyone would have it!

Emerson 11-16-2016 11:09 AM

Quote:

Originally Posted by trumpforprez (Post 5631262)
Well now I don't know what my ip address is.

On Whatsmyip, the site gave me my ip adress, the town I live in, and my net provider!
So I'm guessing it's my correct ip.

But why is ifconfig giving me a different ip address?

Also, does anyone not have openvpn?
I thought almost everyone would have it!

So you are unwilling to learn what NAT routing is and want spoonfeeding? You have to wait then, I will not do that, maybe someone else is in mood.

trumpforprez 11-16-2016 11:13 AM

Quote:

Originally Posted by Emerson (Post 5631269)
So you are unwilling to learn what NAT routing is and want spoonfeeding? You have to wait then, I will not do that, maybe someone else is in mood.

I have looked up nat on Wikipedia.
It's just info on nat.

It doesn't explain why ifconfig gives the wrong ip address.
Also, I still don't know if I can proceed with installing openvpn because of a simple problem from the very beginning!

BW-userx 11-16-2016 11:18 AM

you have a router that has an ip to the outside word, then that router gives out address to everything attached to it on the "inside" world, network -> intranet or internet?

ifconfig will give you your IP address. gateway ip is for what

https://www.cyberciti.biz/faq/how-to...ay-ip-address/

trumpforprez 11-16-2016 12:02 PM

Quote:

Originally Posted by BW-userx (Post 5631275)
you have a router that has an ip to the outside word, then that router gives out address to everything attached to it on the "inside" world, network -> intranet or internet?

ifconfig will give you your IP address. gateway ip is for what

https://www.cyberciti.biz/faq/how-to...ay-ip-address/

I am getting the same outputs as shown on your link when I use
Code:

route -n
and
Code:

netstat -r -n
I went onto whatsmyipaddress and got a dynamic ip address - but it still had personal details like town and ISP.
I rebooted the pc and switched the router off and on again.
I found a different dynamic ip on whatsmyipaddress.

So this must mean the dynamic ip isn't my real ip.
My real ip must be the one shown on ifconfig.
If I use openvpn, then go to whatsmyipaddress, it'll show me another dynamic ip but this time it won't know my personal details.
It'll only see details of an openvpn server.

BW-userx 11-16-2016 12:20 PM

Quote:

Originally Posted by trumpforprez (Post 5631301)
I am getting the same outputs as shown on your link when I use
Code:

route -n
and
Code:

netstat -r -n
I went onto whatsmyipaddress and got a dynamic ip address - but it still had personal details like town and ISP.
I rebooted the pc and switched the router off and on again.
I found a different dynamic ip on whatsmyipaddress.

So this must mean the dynamic ip isn't my real ip.
My real ip must be the one shown on ifconfig.
If I use openvpn, then go to whatsmyipaddress, it'll show me another dynamic ip but this time it won't know my personal details.
It'll only see details of an openvpn server.


key word
dynamic
as apposed to
static


All times are GMT -5. The time now is 08:14 PM.