If you are testing your mobile app from a real devicc and need to access your expo app locally, here’s an example of opening the ports for the necessary services. (Windows powershell (admin))
# AllowNode.jsinboundNew-NetFirewallRule-DisplayName"Node.js"-DirectionInbound-Program"C:\Program Files\nodejs\node.exe"-ActionAllow# AllowspecificExpoportNew-NetFirewallRule-DisplayName"Expo Dev Server"-DirectionInbound-ProtocolTCP-LocalPort8081-ActionAllow# AllowMetrobundlerportrangeNew-NetFirewallRule-DisplayName"Metro Bundler"-DirectionInbound-ProtocolTCP-LocalPort19000-19006-ActionAllow
I am using Docker Swarm mode on my VPS solely for the purpose of using docker secrets. The purpose of using docker secrets (limited with swarm mode) is obviously to not have any sensitive data on the localhost. With that said, I wanted to go outside the swarm network and directly bind ports to the host’s network.