Macos – Can’t access the computer with its public ip

ipv6macosnetworking

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

Best Answer

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.

Related Question