MATLAB: How to get data from wifi through TCP/IP

iptcpwifi

I am trying to get the data from wifi through TCP. I have found an example code online, but it seems not working well.
1.How can I listen to a TCP server's port in a particular IP address? In the example code, there is a function: interfaceObject = tcpip('localhost',19); How does the function tcpip()works? Why can't I find it in the function browser?
2. If I want to collect data from RS232, there are functions like: YY = serial('COM1'); fopen (YY); data=fscanf(YY); Are there functions playing similar roles in TCP?
Thank you!

Best Answer

tcpip() is part of the Instrument Control Toolbox.
There is also a File Exchange contribution named "tcpudpip" that can be used.