I have an Azure VM with Windows Server 2012. It is running a Java application that binds and listens on a specific IP/port.
The server has an external IP, and is reachable on it (I RDP to it without issue).
The application requires an IP to bind to. I have tried:
- External IP: java.net.BindException (which is understandable, as the machine does not know it has an external IP - ipconfig only reveals internal IP: 10.0.0.4)
- 0.0.0.0 - can't reach from the Internet
- 10.0.0.4 (internal IP) - can't reach from the Internet
I have accessed the Network Security Group, which is associated with both the Network Interface as well as the Subnet. I have created Inbound and Outbound rules, allowing 'Any' protocol, 'Any' source, 'Any' destination, and the port used by the java application. All online sources tell me that this should suffice.
I have restarted the VM, but that did not help.
What can I check? What did I miss?
netstat -ant
.