Search code examples
coldfusionwindows-10parallelsmacos-high-sierracommandbox

Access web project on mac host from Windows parallels


I have found a lot of similar discussion, but non of it really helped.

When I tried to run PHP web project on Mac and access from virtualized Windows, I got correct result on multiple ports. I think, that this means that I have correct settings in parallels and firewall (I didn't set any port forwarding on parallels and I have set 'shared networking'). Also SQL db from virtualized Windows is accessible on Mac without any issue (in this case, db port is forwarded).

My issue appear when I tried to run Coldfusion project on Commandbox.

My project runnig on localhost:61212 for example.

I tried port forwarding on parallels, from 61212 to 61212 on correct IP address.

Also tried to edit /etc/pf.conf. I add pass in proto tcp from any to any port 61212 and did sudo pfctl -f /etc/pf.conf.

But because of mentioned PHP experience, maybe I need to correct setup of Commandbox Coldfusion, but I don't have any clue where to do this.

Of course firewall is off on both.

Last think what I tried was install of Bonjour on Windows according to some discussion on other forum.

Thank you for any help.


Solution

  • One solution could be run commandbox server on Paralles. When server can running upon shared project file and it could connect to mysql on host, source code could be edited as usual and site could be reload on paralles. Little slow, but all fine.

    But it exists better solution. For case that host ip is 10.211.55.2 and wanted port is 12345.

    box server start host=10.211.55.2 port=12345 see doc

    Then access from paralles by url http://10.211.55.2:12345. Same url is accessible from host.