External Mode with Wi-Fi

I need guidance on how to connect Simulink to my project via wireless. Is there any step-by-step guide there? I've tried updating the Hardware Implementation pane > wifi properties and the external mode, but for some reason, it keeps on saying that it cannot connect to the COM port.

I am able to connect my project to Matlab via wireless with ease. I am even able to run commands and control the arduino using scripts. It is really just with Simulink that I am not able to sort it out. Please help.

arduino wifi.JPG|480x419

error.JPG|704x404

external mode wifi.JPG|861x637

wifi properties.JPG|837x609