Skip to content

Latest commit

 

History

History
89 lines (52 loc) · 2.3 KB

notes.md

File metadata and controls

89 lines (52 loc) · 2.3 KB

notes

Connecting via localhost doesn't work between macOS and Windows running on Parallels Desktop, so we need to fix this.

https://forum.parallels.com/threads/access-local-network-of-mac-from-windows.359527/

https://forum.parallels.com/threads/how-to-use-localhost-on-my-mac-from-inside-parallels.363066/

Getting the host ip address on macOS:

ipconfig getifaddr en0

I set up the Networking mode in Parallels Desktop to Bridged > Adapter.

https://apple.stackexchange.com/questions/261767/how-to-access-macos-localhost-port-3000-from-parallels-ie

List all network devices on Windows:

arp -a

https://en.wikipedia.org/wiki/Port_forwarding

https://superuser.com/questions/153624/access-localhost-on-mac-os-x-from-parallels-machine

ifconfig vnic0

List all network devices on macOS:

sudo nmap -sP {host ip address}/24

sP is skip port scan

Router ip address 192.168.0.1

What we need to do right now is make sure that the client from a totally different device (the Meta Quest Pro) can talk to the WebSocket server on Windows.

So parallels desktop actually sets up a virtual subnet / functions as a virtual router

virtual subnet

Bridged means it uses a virtual network interface card (NIC) and does not create a virtual subnet.

This sounds like the one we need. Then we also need to set the IP address.

192.168.0.100 is the static IP address now assigned to the server.

Parallels Desktop MAC address issues

As I'm trying to statically assign the IP address (as configured in the DHCP server) for the server, the MAC address needs to be configured properly. However, Parallels Desktop sometimes uses the MacBook's MAC address (or at least, the router shows the MacBook's MAC address).

Seems like this issue:

https://forum.parallels.com/threads/pd16-on-big-sur-vm-not-using-the-configured-mac-address.351236/?clientId=1047149074.1715937619&sessionId=1715937618&_gl=1*l60pd4*_up*MQ..*_ga*MTA0NzE0OTA3NC4xNzE1OTM3NjE5*_ga_RYHBN2XNLK*MTcxNTkzNzYxOC4xLjAuMTcxNTkzNzYxOC4wLjAuMA..

MAC Address on macOS:

ifconfig en0

under ether is the mac address

Get MAC address on Windows:

getmac

bridge ip on parallels: 10.211.55.2

get ip address on Windows:

ipconfig

Android debugging

adb:

/Applications/Unity/Hub/Editor/2022.3.28f1/PlaybackEngines/AndroidPlayer/SDK/platform-tools/adb