LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-29-2015, 02:40 PM   #1
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 211

Rep: Reputation: 8
which is my public and which is my private


hi guys, ive altered the numbers for security but can someone tell me which one of these is my private ip address for this particular computer? im troubleshooting port forwarding and i want to make sure i have the right private ip address. i know the public one already. i used ifconfig to print this out. there are so many addresses that im not sure which is my private one for this particular computer. thanks

Link encap:Local Loopback
inet addr:133.5.7.1 Mask:255.5.6.2
inet6 addr: ::1/144 Scope:Host
UP LOOPBACK RUNNING MTU:44436 Metric:1
RX packets:26824 errors:0 dropped:0 overruns:0 frame:0
TX packets:26824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3268828 (3.2 MB) TX bytes:3268828 (3.2 MB)

wlan0 Link encap:Ethernet HWaddr 11:1f:8b:a5:98:c2
inet addr:10.1.1.33 Bcast:11.1.1.293 Mask:242.242.242.0
inet6 addr: fe70::23f:7bff:fea9:38c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1800 Metric:1
RX packets:244694 errors:0 dropped:0 overruns:0 frame:0
TX packets:247756 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:209624351 (209.6 MB) TX bytes:84885694 (84.8 MB)
 
Old 04-29-2015, 03:10 PM   #2
strick1226
Member
 
Registered: Feb 2005
Distribution: CentOS, Fedora, OS X, SLES, Ubuntu
Posts: 326

Rep: Reputation: 63
It would appear your individual computer's wireless IP address (wlan0) from the above is 10.1.1.33 .
 
1 members found this post helpful.
Old 04-29-2015, 03:14 PM   #3
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 211

Original Poster
Rep: Reputation: 8
thank you
 
Old 04-30-2015, 04:25 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
The definition of public and private IP numbers can be found at:
http://en.wikipedia.org/wiki/Private_network

Any address that is not in one of these ranges is public.

BTW, I think you have an error in the loopback device:

Loopback should be 127.0.0.1 with a netmask of 255.0.0.0

You are showing an address of 133.5.7.1 Mask:255.5.6.2

Second, in your wlan0 entry you have:
net addr:10.1.1.33 Bcast:11.1.1.293 Mask:242.242.242.0

No problem with net addr - but the broadcast appears wrong; it should be 10.1.1.255 (The first octet should match your net address; the last octet cannot be larger than 255 as it is an unsigned byte)

Now what you have may be working - but only because the netmask would be masking out the 11.1.1.xxx. Usually the netmask should be 10.255.255.255, but you may be subneting in which case other values would apply (but I'm pretty sure 242.242.242.0 is wrong even then).

Last edited by jpollard; 04-30-2015 at 04:38 PM.
 
Old 04-30-2015, 05:49 PM   #5
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
I'm confused as to why you altered the numbers "for security". It just makes it more confusing for those trying to help you and you're not hiding anything of value, as these are the loopback address (127.0.0.1) and the assigned ip on the private network (10.1.1.x).

strick1226 is right: 10.1.1.33 would be the private address.
 
Old 04-30-2015, 07:31 PM   #6
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 211

Original Poster
Rep: Reputation: 8
It's mainly because I don't know what I'm doing yet. I just thought if I put allmy details on a public forum I would be hacked by all you expert types and steal all my PayPal money.
 
Old 05-02-2015, 12:13 AM   #7
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
OK. I'm not trying to be a jerk, but my advice is that you educate yourself on these basic concepts before you start messing around with port forwarding, because THAT is what is likely to open you up to security issues.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
public IP and Private IP mysqldb02018 Linux - Virtualization and Cloud 4 05-07-2013 11:49 PM
access private ip from public ip pasin Linux - Server 9 04-24-2013 11:25 PM
Why am I seeing private ip's on a public network rbees Linux - Networking 2 11-06-2008 07:54 PM
public, private, protected...?(C++) name_in_use450 Programming 6 10-08-2008 12:43 AM
public vs private ip emailssent Linux - Networking 2 09-28-2004 03:11 AM


All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration