#### remote_open Procedure ¶

Open connection to a remote host or target. This requires the `target_info` array be filled in with the proper information to work. It returns the spawn id of the process that is the connection.

> `remote_open type`

`type`

  This is passed `host` or `target`. Host or target refers to whether it is a connection to a remote target, or a remote host. This opens the connection to the desired target or host using the default values in the configuration system. It returns that `spawn_id` of the process that manages the connection. This value can be used in Expect or `exp_send` statements, or passed to other procedures that need the connection process’s id. This also sets the `fileid` field in the `target_info` array.