You have to add that port in the inbound rule in the remote computer. It will work. You don't have to add outbound to local computer.
Don't Use ollama.generate instead use client.generate