Preliminary I assume you have an Azure VM running with a web server and have the port configured in your firewall of your operating system. In my example I use a Windows Server 2012 with Internet Information Services (IIS) and have configured port 8080 for incoming traffic.Further, I assume the VM is set up using the new portal as an Azure Resource Manager (ARM) deployment and not using the old portal and not as a classic deployment.
Jun 09, 2019 Create a Local Web Server ASP.NET Application. Start Microsoft Visual Studio.NET. On the File menu, point to New, and then click Project. In the New Project dialog box, click Visual Basic Projects under Project Types, and then click ASP.NET Web Application under Templates to create the project in Visual Basic. But if you can do TCP sockets with VBA, then you can make an incredibly simple web server by following the HTTP standard protocol. Edit: based on your comment, yes you can make a simple web server as long as you can open up a TCP socket.
![Example Example](/uploads/1/2/5/4/125424953/436760072.png)
(Follow to find a explanation how to do set up ports for a classic deployment.) Step-by-Step. In the Azure Portal go to the VM running the web server and click on 'All settings'. Select 'Network interfaces' and select the network interface with the public IP address. (Probably there is only one.). Select the 'Network security group' and click on 'All settings'. Select 'Inbound security rules'.
Click 'Add' and create a new inbound rule with the following settings:. Name: any name, e.g. 'Web'. Priority: any number lower 65500. Source: any or Internet. Protocol: any or TCP. Source port range:.
(important!). Destination: Any. Destination port range: 8080 (web server's configured port).
Action: Allow.