'How to resolve Network Error -53 when trying to mount NFS File share?

So I'm trying to mount the file share I've created on AWS as per this guide : https://docs.aws.amazon.com/filegateway/latest/files3/GettingStartedAccessFileShare.html

So far I've created a gateway which is being hosted on Amazon EC2 instance. Afterwards I created the file share of type NFS and now I'm trying to mount it using this command:

mount –o nolock -o mtype=hard [GatewayVMIPAddress]:/[FileShareName] [WindowsDriveLetter] 

However I keep getting this error: Network Error - 53 which is "the network path was not found".

So far I've tried adding/changing port requirements of my ec2 instance by adding what amazon support recommends https://docs.aws.amazon.com/storagegateway/latest/userguide/Requirements.html#networks but still getting same error. Not sure what else I can try? Any help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source