SOLVED

Can't access the application on the Public IP of VM

%3CLINGO-SUB%20id%3D%22lingo-sub-3010008%22%20slang%3D%22en-US%22%3ECan't%20access%20the%20application%20on%20the%20Public%20IP%20of%20VM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3010008%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20is%20a%20Application%20running%20on%20the%20127.0.0.1%20and%20able%20to%20connect%20with%20the%20application%20in%20the%20VM%20but%20when%20trying%20to%20connect%20with%20the%20same%20application%20on%20public%20IP%20of%20the%20VM%2C%20it%20gives%26nbsp%3B%20%22%3CSTRONG%3EError%3DCannot%20discover%20the%20applications%20from%20opc.tcp%3A%2F%2F%3CPUBLIC%20ip%3D%22%22%3E%3A49320%3C%2FPUBLIC%3E%3C%2FSTRONG%3E%22.%3CBR%20%2F%3E%3CBR%20%2F%3EAdded%20InBound%20Rules%20on%20port%2049320%20in%20Networking%20Tab%20and%20also%20in%20the%20Windows%20Machine%20%22Windows%20Advanced%20Firewall%20Security%22%20but%20still%20not%20able%20to%20connect%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3CBR%20%2F%3EShashi.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3010107%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20access%20the%20application%20on%20the%20Public%20IP%20of%20VM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3010107%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1230933%22%20target%3D%22_blank%22%3E%40psp316r%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3E%3CBR%20%2F%3EAfter%20lot%20of%20debugging%20Did%20the%20following%20things%3CBR%20%2F%3E1.%20Turned%20of%20the%20Firewall%20of%20Windows%20VM%3C%2FP%3E%3CP%3E2.%20Made%20sure%20Application%20is%20running%20on%20the%200.0.0.0%20and%20127.0.0.1%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3EShashi.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

There is a Application running on the 127.0.0.1 and able to connect with the application in the VM but when trying to connect with the same application on public IP of the VM, it gives  "Error=Cannot discover the applications from opc.tcp://<Public IP>:49320".

Added InBound Rules on port 49320 in Networking Tab and also in the Windows Machine "Windows Advanced Firewall Security" but still not able to connect

Thanks
Shashi.

1 Reply
best response confirmed by psp316r (New Contributor)
Solution

@psp316r ,

After lot of debugging Did the following things
1. Turned of the Firewall of Windows VM

2. Made sure Application is running on the 0.0.0.0 and 127.0.0.1

Thanks,
Shashi.