0

I need to make my IP address accessible to an external server. Specifically, I have a microservice (spring boot) running on port 6002 of my mac (catalina). I would need the external server to contact my machine (I made an api to do that), however the request times out (i have access to the machine from ssh). How could I solve? I have no firewall active and I used my public ip to contact the microservice (runs on the localhost)

1 Answer 1

1

Check which one is the IP address of your Mac and your Public IP, for example going to https://www.whatismyip.com/

If they are different, your internet router is doing NAT. You have to configure in the NAT section of the router a rule to forward everything coming to a specific port to your Mac.

For example, you can create a rule to forward anything coming to port 6002 to your MAC

The external server should point to the Public IP found before and the 6002 port.

Keep in mind that anybody sending to 6002 will be able to reach your MAC, so maybe the rule should filter also the Source IP to permit access only to traffic coming from the external server

0

You must log in to answer this question.

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