Hello John Loh,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you configured FTP server on Windows Server 2022 via Azure VM, you can connect to the FTP folder using FileZilla FTP client but you're unable to connect to the FTP folder outside of the VM.
Solution
If you're able to connect to the FTP server from within the Azure VM but not from outside, there are several potential issues to fix.
- On Azure Network Security Group (NSG) Configuration, allow port 21 and passive mode ports.
- In Windows Firewall check the settings and allow port 21 and passive mode ports.
- Also, in IIS FTP Configuration you will need to configure passive mode with the correct port range and public IP.
- In your FTP Client you will need to set it, so that it can use passive mode.
- Lastly: You will need to ensure the Azure VM where you have your FTP has a static public IP to avoid changes.
Try all the above you should be able to connect to your FTP server from outside the Azure VM and let me know if you need step by step configuration for anyone you could not do.
Accept Answer
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam