LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01:40 PM   #1
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 230

Rep: Reputation: 10
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, 02:10 PM   #2
strick1226
Member
 
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, macOS, SLES, Ubuntu
Posts: 327

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, 02:14 PM   #3
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 230

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

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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 03:38 PM.
 
Old 04-30-2015, 04: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, 06:31 PM   #6
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 230

Original Poster
Rep: Reputation: 10
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-01-2015, 11:13 PM   #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



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 10:49 PM
access private ip from public ip pasin Linux - Server 9 04-24-2013 10:25 PM
Why am I seeing private ip's on a public network rbees Linux - Networking 2 11-06-2008 06:54 PM
public, private, protected...?(C++) name_in_use450 Programming 6 10-07-2008 11:43 PM
public vs private ip emailssent Linux - Networking 2 09-28-2004 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 AM.

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
Open Source Consulting | Domain Registration