18

I understand 192.168.x.x is our local IP address, and the public IP is some other. I used this site to get my IP, and the result:

But in my official ISP's site and my Router's login, it is as follows:enter image description hereenter image description here

My router and ISP shows my an IP, while the website shows me another IP. What is my actual IP address? And why am I assigned multiple IP addresses?

I am asking so that another computer can establish a connection with my computer, as I wrote a java program for that

  • 24
    Your ISP is likely using Carrier Grade NAT. – DavidPostill Aug 13 '16 at 15:11
  • 3
    @DavidPostill as someone who uses the same ISP as OP, can confirm – Sathyajith Bhat Aug 13 '16 at 15:11
  • 4
    Yes, that's carrier grade NAT... done wrong. The shared IP address should be in 100.64.0.0/10, and IPv6 should have been deployed before CGNAT. My site myip.addr.space can tell you if you have IPv6 connectivity. – Michael Hampton Aug 13 '16 at 18:32
  • 4
    "What is my actual IP address?" Private IP addresses are actual IP addresses. The only difference between private and public IP addresses is that the ISP have agreed to not route traffic with private IP addresses. Other than that, private and public IP addresses are exactly the same, and they work the same way. You happen to have private addresses on both your WAN and LAN. The ISP has the public IP address which is used to reach you on the public Internet; you don't have a public IP address. – Ron Maupin Aug 14 '16 at 3:24
  • 1
    @SiddharthVenu: They're all your actual IP ;) – Lightness Races in Orbit Aug 14 '16 at 14:12
49

Your internet provider is using Carrier grade NAT. Your local (to your house) IP address is 192.168.x.x. Your local (to your ISP) address is 10.230.x.x. The public, routable IP which you are sharing with many other customers of your ISP is 49.207.x.x.

  • 1
    So to other computers, what IP should I use in my program so that they can connect to my computer? – Siddharth Venu Aug 13 '16 at 15:18
  • 22
    @SiddharthVenu -- you can't. Your ISP (Beam Telecom Pvt?) is not providing you full internet access; carrier-grade NAT implies you have outbound access only. If your ISP provides IPv6 as well as IPv4 transport, it is likely that your IPv6 address is public. You can also host your public content with a hosting service that provides full IP connectivity rather than on your home machine(s). (Of course, if by "other computer" you mean another computer in your home LAN, then you can just connect with the local 192.168.x.x address.) – user4556274 Aug 13 '16 at 15:21
  • 1
    Thanks for answering :) I guess I have to use VPN then... – Siddharth Venu Aug 13 '16 at 15:23
  • 2
    @SiddharthVenu Call up your ISP and ask if they support IPv6, perhaps. – user20574 Aug 14 '16 at 1:48
  • 2
    Probably good idea will be to call ISP and ask if they sell so called "white" IPs to customers. These white IPs are routable through Internet, but usually come at a higher cost compared to "gray", carrier grade NAT IPs. – TranslucentCloud Aug 14 '16 at 18:37
-2

You are assigned a local IP for your internal network, and a public IP for the internet, if you type into google "what is my ip" it will return your public IP address and when you go to cmd and type "ipconfig" it will show a IPv4 address, that is your internal/local IP.

Local IPs tend to be something like:

10.x.x.x,

172.16.x.x

192.168.x.x

One of the reasons you need a local IP is due to something called NAT or Network address translation.

Further Reading: https://en.wikipedia.org/wiki/Private_network

-7

You can connect two computers in your house to each other via the 192.168.x.x IPs. To have the outside world connect to your PC is something your ISP / Cable company is trying to prevent; for instance generally the ISP will not forward port 25 for incoming mail.
They will sell you a fixed IP that you can use to have Internet access TO your PC, but you will need a server security hardened to handle everything that comes in, including various attacks that happen when you connect to the Internet, as you will be a live site, accessible to anyone. This means firewalls need to be set up correctly, etc.
So, for the average cable user, the answer is "you can't".

  • 6
    It's not because "the internet is dangerous". It is because they have more customers than IP addresses to give out. – Lightness Races in Orbit Aug 14 '16 at 14:10
  • 4
    And this "you will need a server to handle everything that comes in, including various attacks" just doesn't make any sense – Lightness Races in Orbit Aug 14 '16 at 14:11
  • 2
    This is simply a money saving technique... you'll find many ISPs do still give out individual IPs. – cybermonkey Aug 14 '16 at 21:52
  • Tried to make my answer better by adding more info. Apparently, I was too vague for LRO. – Engineer Aug 22 '16 at 19:32

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.