1

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 73.170.168.215, 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
  • 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, 2018 at 19:22

3 Answers 3

6

The IP you're seeing (73.170.168.215) 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.

8
  • 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, 2018 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. Mar 20, 2018 at 21:35
  • 1
    It's always important to get your parents permission first! :-)
    – fsb
    Mar 20, 2018 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, 2018 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, 2018 at 3:55
1

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.

1
  • 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, 2018 at 4:58
1

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.

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

You must log in to answer this question.

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