Adding a Skytap-managed DNS name and public IP address to a VM
A public IP address exposes all network ports on the VM, allowing direct inbound and outbound access from the public Internet.
Because there is a greater security risk in exposing a VM to the public Internet, consult your network administrator before using a public IP address. To learn more about other options for sharing a VM with external users, see Accessing VM desktops.
How to attach a dynamic public IP address with DNS to a VM
To add a managed DNS name and dynamic public IP address to a VM
Navigate to the Environment page.
Show me how
From the navigation bar, click Environments. Click the Environments tab.
- (Optional) Narrow or sort the list of environments using the filter, search, or sort options.
Click the name of the environment.
The Environment Details page displays.
Navigate to the VM Settings > Network Adapters page for the VM you want to edit.
Show me how
Navigate to the environment.
Click (Settings) for the VM you want to edit.
If the Settings button is not visible, you do not have permission to edit the VM settings. Work with your instructor or Skytap administrator to edit these settings.
The VM Settings page displays. The Network Adapters tab is selected by default.
Click Add Public IP with DNS.
Public IP addresses cannot be attached to network adapters on Manual networks. If Add Public IP with DNS is missing, create an automatic network, attach the VM to it, and then repeat the steps above to add the public IP address on the new network adapter.
Skytap Cloud automatically:
Attaches an available public IP address to the VM (if the VM is running).
This public IP address is subtracted from the remaining number of public IP addresses in your organization’s Skytap Cloud account. Administrators can view and manage these public IP addresses from the Manage Public IP Addresses page.
Generates a DNS name for the VM. It may take several minutes for the DNS name to fully propagate.
If the VM is suspended or powered off, Skytap Cloud generates the DNS name but does not attach a public IP address. The next time the VM is run, an available public IP address will be automatically attached to the VM. The DNS name is not accessible unless the VM is running.
You may need to configure the VM guest OS to accept incoming connections. A guest OS typically has a software-based firewall that blocks most connections to a VM by default. You may not be able to connect to the VM from the public Internet unless you change the firewall rules to allow incoming connections.
Accessing the VM via its DNS name and/or dynamic public IP address
When the VM is running, it is accessible from the public Internet via the DNS name listed on the network adapter page. It can also be accessed via the dynamic public IP address, though this public IP address is very likely to change the next time the VM is run.
Notes about connecting to the public IP address from:
Within the VM
Skytap Cloud routes traffic from the public IP address to the VM local IP address via Network Address Translation (NAT). Within the VM, the public IP is not visible to the guest OS or applications running on the VM. For example, if you are logged into a firewall appliance VM that is attached to a public IP address, you’ll need to access the appliance’s web interface from the VM local IP address (example: 10.0.0.1).
Other VMs in the same environment
Generally, a VM cannot ping a public IP address that is attached to another VM in the same environment. VMs on the same network must communicate with one another using their private network IP addresses. For more information, see Can I connect to a public IP address or published service from another VM in the same environment?
Can I attach a public IP address to a VM that is also connected to a VPN or Virtual Private Network?
Yes. Public IP addresses can be added to an environment that is connected to a VPN or Virtual Private Network (WAN). You should exercise caution to prevent security issues from exposing the environment and WAN to the public Internet.
Related links: Managing VPNs and Private Network Connections, Exposing and blocking public internet access, Protecting a VM that is exposed to the internet or compromised, and Managing public IP addresses.
What happens when I save the VM in a template?
Skytap Cloud automatically generates a unique domain name for each new VM created from the template. When the new VM is run, Skytap Cloud automatically deploys an available public IP address.
- What is the difference between static public IPs and dynamic public IPs with DNS?
- Editing a Skytap-managed VM DNS name
- Detaching a static public IP address or Skytap-managed DNS name from a VM
- Troubleshooting issues connecting to a VM via a public IP address or Skytap-managed DNS name