MATLAB: How to run parpool without DNS resolution between worker and client machines

When starting a pool I receive an error because my worker nodes cannot resolve the hostname of my client machine, how can I resolve this?

Best Answer

The preferred method for resolving this issue is to adjust your DNS settings so that your worker nodes can resolve the hostname of the client machine that is opening the pool.
If this is not possible, you can set the below commands in your startup.m file, which will allow your current IP address to be set instead of your hostname.
 
hn=java.net.InetAddress.getLocalHost();
hn = hn.getHostAddress;
pctconfig('hostname',char(hn));
You will now be able to open a pool and your worker nodes should be able to resolve your IP address.