LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2005, 08:18 AM   #1
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 48
whats my NATed IP?


i use an internet connection which, i believe does a NAT on my IP. is there a way to find my NATed IP? can somebody establish i connection to my system if he knows my NATed IP (if there are no iptable rules in place)?
 
Old 10-11-2005, 09:52 AM   #2
fataldata
Member
 
Registered: Jun 2002
Location: Breckenridge, Colorado
Distribution: Ubuntu Hardy 8.04
Posts: 101

Rep: Reputation: 15
To find your Public IP you can go to
http://whatismyip.com

To connect to your pc from the outside through NAT, you need to have control of the NAT so that you can map the ports for the services you wish to access through the NAT/Firewall. You might be able to use that "gotomypc" service, but I have no experience with that service.
 
Old 10-11-2005, 01:26 PM   #3
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Original Poster
Rep: Reputation: 48
i had tried that with dnsstuff.com, but i AFAIK, what it gives is the IP of my gateway, which is doing the NATing. after NATing, my IP should look something like aa.bb.cc.dd:xyz.. right? thats not exactly what i am getting with dnsstuff.com or whatismyip.com.
 
Old 10-11-2005, 02:39 PM   #4
fataldata
Member
 
Registered: Jun 2002
Location: Breckenridge, Colorado
Distribution: Ubuntu Hardy 8.04
Posts: 101

Rep: Reputation: 15
es, It probably gives you the address of your gateway where NAT is being performed. Do you have control of the gateway? If so you can map port's through it to your internal IP's.

NAT is basically used to expand the number of devices you can connect. It takes non-routable IP addresses and substitutes it's IP Public [B]Routable[\B] address for the non-routable one, and then forwards the request to the internet.

These addresses are non-routable on the public network. RFC1918
Private Address Space
10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

So, on your local machine chances are you have an address that falls in one of these ranges. If you did not use NAT, when your internet request get's to a public router it would see one of theses addresses and drop the packet(or at very least not pass it on the the internet).

Quote:
after NATing, my IP should look something like aa.bb.cc.dd:xyz.
Well, I'm a little confused by this. An IPv4 address is xxx.xxx.xxx.xxx
Where xxx is any number from 0 - 255, as for the :xyz that would denote the port number used for the current connection. Like 80 for http or 21 for ftp. For example my IP is 64.33.114.240, if you wanted to connect to a webserver on that IP it would look like 64.33.114.240:80. You don't have to type it this way since web browsers automatically direct you to port 80.
 
  


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
whats this mean? slinky2004 Linux - Newbie 3 10-09-2005 12:04 PM
whats next wesw02 Linux - Newbie 4 12-28-2004 12:17 PM
Routing using VPN on a NATed network yanix Linux - Networking 0 10-17-2004 11:28 PM
whats this mean? iLLuSionZ Linux - Newbie 2 11-16-2003 02:40 AM
Whats this butface Linux - Newbie 4 08-25-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:29 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
Open Source Consulting | Domain Registration