Can't access my computer with its public ip

6,497

Assuming you connect to the internet to some sort of Router/Gateway, the public IP you get points to this device and not to your computer. Most Routers provide settings to forward ports to an IP address within the internal network. So if your Mac has the IP 192.168.1.2, you have to configure the portforwarding to forward port 8888 to that IP.

Share:
6,497

Related videos on Youtube

Jack Twain
Author by

Jack Twain

Someone someone someone someone ... is ... ...

Updated on September 18, 2022

Comments

  • Jack Twain
    Jack Twain over 1 year

    I installed MAMP on my Macbook Pro. It opens on 'localhost:8888'. I went to http://www.whatismyip.com/ and it gave me my ipv4 address. I copied my ip and put it on my browser like this: myip:8888 and hit enter, but nothing opens.

    Then I went to OS X's firewall and saw that it was off. So what's wrong?

    I need to point out two things however:

    1- When I go to Google and type: what is my ip, I get another address like this: 2a02:4061:8380:1000:f025:463f:1412:ea39

    2- When I enter [2a02:4061:8380:1000:f025:463f:1412:ea39]:8888 into any browser, it fails immediately as if the browser doesn't recognize this kind of address. I think it's IPv6 but it can't recognize that it's even an address.

    Edit: I'm connected to the internet through wifi, from my router: My router has only IPv6 and I need to host websites

    Edit: Oops! Google Chrome could not connect to [2a02:4061:8380:1000:f025:463f:1412:ea39]

    enter image description here

    • Ramhound
      Ramhound almost 10 years
      Its actually normal for you to be unable to navigate to your localhost using your public address within a NAT configuration. The question I have can another device connect to that address.