creates a WSTP link with the specified name for another program to connect to.


creates a WSTP link and picks an unused name for the link.

Details and Options

  • LinkCreate returns a LinkObject.
  • You can use LinkCreate and LinkConnect to set up peertopeer communication between two Wolfram System processes.
  • LinkCreate[] by default creates a shared memory link.
  • The option LinkProtocol specifies the underlying data transport protocol to use.
  • LinkCreate[LinkProtocol->"TCPIP"] picks an unused TCP/IP port on your computer system and creates a WSTP link on it.
  • LinkCreate internally calls a function analogous to the WSOpenArgv() function in the WSTP library.


Basic Examples  (3)

Create a link with name "test":

Close the link:

Create a link:

Close the link:

Find an unallocated TCPIP port and create a WSTP link:

Wolfram Research (1996), LinkCreate, Wolfram Language function,


Wolfram Research (1996), LinkCreate, Wolfram Language function,


@misc{reference.wolfram_2021_linkcreate, author="Wolfram Research", title="{LinkCreate}", year="1996", howpublished="\url{}", note=[Accessed: 24-September-2021 ]}


@online{reference.wolfram_2021_linkcreate, organization={Wolfram Research}, title={LinkCreate}, year={1996}, url={}, note=[Accessed: 24-September-2021 ]}


Wolfram Language. 1996. "LinkCreate." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (1996). LinkCreate. Wolfram Language & System Documentation Center. Retrieved from