I am trying to find out my public IP address for my MacBook Air It is on Comcast/Xfinity Wifi (my parents had some tech dudes set it up). When I check http://ipecho.net or any other I get, but this is the same as on my iPhone 8.

On the contrary, the two devices have different local ip addresses with all the numbers the same except the last one 192.168.40.XXX. Is the public IP address the same thing as the router?

  • 1
    The public IP you found is probably correct - all devices in your home will share it. Your secondary question is far too broad - punching a hole in a domestic router to give access to a specific service on a specific machine is far too complex to answer in a couple of paragraphs. – Tetsujin Mar 20 '18 at 19:22

It says here that you may need to setup port forwarding to allow incoming connections from port 15151 to your Mac. If your dad lets you, you may be able to try this in the router settings.

  • It worked! Turns out it was just the port forwarding setting for the specific use of the specific app after all. – cmarangu Feb 2 at 5:26

The IP you're seeing ( is the address your router is exposing to the outside world. The router is masking you're real address to keep you safe.

Any device that uses that router to connect to the outside world will be 'seen' as having that same IP. This is why your Mac and your iPhone appear to have the identical IP's when viewed from outside your network. The public IP is the address of that router (I'm trying to keep this simple because networking can get really complicated fast).

Your router is responsible for taking the individual device traffic and routing them to the correct device within your "private" network.

To use BlockheadsServer correctly with your Mac, it's best if you contact their support to determine the best way to configure it. You don't want to misconfigure a router because you might accidentally open-up your network to malicious activity.

  • 1
    Okay thanks for confirming that it is the router making all of the public IP's look the same. If I'm going to get the "real" IP address of my MacBook I will confirm with the tech dudes how best to change this settings (and confirm with my parents if it's ok to do so). – cmarangu Mar 20 '18 at 21:12
  • 1
    @cmarangu What your router is doing to translate between internal (private) and external (public) addresses is a form of network address translation (aka NAT). You can find lots more information using that as a search keyword/phrase. – Gordon Davisson Mar 20 '18 at 21:35
  • 1
    It's always important to get your parents permission first! :-) – fsb Mar 20 '18 at 21:46
  • 1
    When you say "real" IP address of your MacBook - what are you referring to; what are you trying to do? Your MB has an IP (a private one) and your router has two (public and private). The question is...what are you trying to accomplish that you need this info? (probably a new/different question) – Allan Mar 20 '18 at 22:28
  • 3
    You need the public IP of your router, not your MacBook. Your router will then port forward the port you referenced (15151) to your MacBook. Further, you will want to use Dynamic DNS service since your public IP will eventually change. All that said, this basically makes it off topic for this site. – Allan Mar 21 '18 at 3:55

Some routers allow for Universal Plug and Play (UPnP) which will allow the application that you are running on your mac to request port forwarding to "expose" the application to the internet. This will allow the router to be the proxy on the edge of your network and then route the require ports through to your mac on your home network. This is a great way (if your application and router supports this function) as you do not need to spend ages in the router config setting up all the ports and forwarding.

  • Thank you, I will look into this. It seems that the neatgear router does support it! according to their webpage, but I am wondering if I only need to port forward the port Im using in the app 15151 well, I guess we shall see. – cmarangu Apr 1 '18 at 4:58

I believe what you are looking for is Dynamic dns custom port forwarding or something I think. Try https://www.no-ip.com, a free service recommended by some people on a forum trying to do what you are and documented by Google https://www.google.com/search?client=safari&rls=en&q=about+no-ip.com&ie=UTF-8&oe=UTF-8 so therefore probably trustworthy. Google also documented MacKeeper, but they at least mentioned "mixed reviews," and most of the titles of the top results are helpful. Also of note is t. The maker of BlockheadsServer recommended no-ip.com for the specific purpose you are trying to achieve; https://forums.theblockheads.net/t/how-to-set-up-your-own-mac-server/3080.

  • Hi cmarangu, thanks for telling me how to do exactly what I was trying to accomplish but your response does not answer the original question. Although it may satisfy the very reason I posted the question in the first place (other than to get a badge without being totally cheap), I will not mark your response as accepted, since it doesn't really answer the confused question, and besides you won't get any reputation because doppelgänger accounts don't get reputation from answering their own questions. – cmarangu Mar 31 '18 at 20:00
  • Cmarangu. in response to your comment I would like to edit my answer, I am not sure, but I think what you actually need is port forwarding. I think what it does is gives your MacBook a specific IP address not linked to all the other devices on your routers public network. I have not eve google searched it yey. Now I have. Long article on Wikipedia. Long story short I think what DDNS does is it makes a the same address for your changing public IP. Not as critical as port forwarding a special port for your mac on the network – cmarangu Apr 1 '18 at 4:01
  • Better look up exactly how best to do this first, and get your parents' permission first, of course – cmarangu Apr 1 '18 at 4:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .