DirectPlay represents addresses for an application in the form of a URL. The structure of the URL is as follows:


All configuration information for a provider is specified using "key=value" pairs separated by semicolons.

Note This is the opaque representation of a URL, where a single slash mark "/" is used as a scheme terminator, not double slash mark "//".The responsibility of data interpretation is placed on the consumer of the URL and nothing else can be assumed.

A DirectPlay URL has three components: the scheme, the scheme separator, and the URL data:

Scheme: The scheme used for a DirectPlay URL is "x-directplay".

Scheme separator: The scheme separator is simply the string ":/" (a colon followed by a slash mark), implying that the data that follows is "opaque" and does not conform to the Internet standard. It MUST NOT be "://" (a colon followed by two slash marks) because the addition of the second slash mark implies an Internet standard for the remaining data, and the DirectPlay data does not conform to the Internet standard. If the second slash mark is detected, DirectPlay will flag the URL as invalid.

URL data: The URL data is a combination of "key=value" strings, where each string is separated by a semicolon.

There are no ordering requirements for the "key=value" pairs in the data, except for the "provider" key that is expected to be first to speed up parsing. All "key" identifiers SHOULD be lower-case and SHOULD NOT contain characters that are considered reserved, specifically: the semicolon (;), the slash mark (/), the question mark (?), the colon (:), the at sign (@), the equals sign (=), the ampersand (&), and the number sign (#). All "value" strings will be treated as case-sensitive to cover future uses.

The following table identifies the current "keys" and their valid "values".




Text representation of a GUID for an application instance.


Any valid baud rate (subject to potential validation). Used by modem and serial links.


Text representation of a device GUID.


"NONE", "XONXOFF", "RTS", "DTR", or "RTSDTR". Used by modem and serial links.


Any valid hostname, used only for IP and Internetwork Packet Exchange (IPX).


"NONE", "EVEN", "ODD", "MARK", or "SPACE". Used by modem and serial links.


Any valid telephone number. Used by modem links.


Any valid port address, used for IP and IPX, up to the maximum port value of 65535.


Text representation of the program GUID.


Text representation of the service provider GUID.


"1", "1.5", or "2". Used by modem and serial links.

Note Any unrecognized keys not identified in the previous table MUST be ignored. The number sign (#) token is used to indicate "user data" appended to the end of a URL. All characters that follow the number sign token in a URL MUST be ignored.

URL Examples

IP Address

  device=%7BIP ADAPTER GUID%7D;port=0000230034#IPUserData

IPX Address

  device=%7BIPX ADAPTER GUID%7D;port=00230#IPXUserData

Serial Address

  device=%7BCOM PORT GUID%7D;baud=57600;stopbits=1;parity=NONE;

Modem Address