If you are using explicitly “localhost” then it is probably only listening on localhost (i.e. 127.0.0.1).