# Managing Public Network Access | Cycle.io

Canonical URL: https://cycle.io/docs/portal/managing-public-network-access

## Managing Public Network Access.

There are two ways to access virtual machines on Cycle.

1.  [Gateway Service](https://cycle.io/docs/platform/gateway-service)
2.  [Load Balancer](https://cycle.io/docs/platform/native-load-balancer)

Virtual machines need to have [network settings for public network set to enable](https://cycle.io/docs/portal/virtual-machine-network).

Learn more about [virtual machine networking](https://cycle.io/docs/platform/virtual-machine-networking).

### Gateway Service

Cycle provides a gateway service, available in each environment, that can be used as a router directly to a virtual machine.

The provisioning of gateway services works as follows:

For any given server which hosts a virtual machine that has public IPs attached to it, a gateway service will be initialized. After IPs are assigned to the virtual machine and the gateway initialized it must be started through the management modal available on the environment dashboard.

This service requires the virtual machine assign itself IP address(es) for the routing to work. To assign those addresses visit the [virtual machine dashboard](https://cycle.io/docs/portal/virtual-machine-dashboard) and use the form there.

For users wanting to assign a IPv4 address for routing, [legacy mode](https://cycle.io/docs/platform/introduction-to-environments#legacy-mode) must be enabled on the environment. This mode can only be enabled on environment create.

#### LINKED Records and DMZ

The gateway service can be used directly by IP but can also be used in conjunction with [LINKED records](https://cycle.io/docs/platform/dns-records#linked-records). To use the gateway with the LINKED record, select the DMZ checkbox.

### Load Balancer

For virtual machine routing, the [V1 load balancer](https://cycle.io/docs/platform/native-load-balancer) must be used and not the HAProxy load balancer.

The load balancer service allows the user to point a [LINKED record](https://cycle.io/docs/platform/dns-records#linked-records) directly at a virtual machine. This method does not require the user assign an IP to the virtual machine. Simply [create the LINKED record](https://cycle.io/docs/portal/creating-a-dns-record#type-linked) and make sure that the ports in the networking configuration are properly assigned. From there the rest is handled by the platform.

Similar to containers, using the LINKED records + load balancer allows for:

-   Automatic HTTP to HTTPS redirection.
-   TLS termination at the load balancer.

Other load balancer configuration options will also work. Path matching and other advanced routing mechanics are usable with virtual machines the same way they are with containers. It should be noted that the "round-robin" load balancing that is provided to containers will not have an effect on routing to virtual machines simply because each virtual machine has only one instance maximum.

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
