To see Windows shared folders on a Mac, follow these steps
- Get the Windows IP Address:
- On your Windows PC, open the Start menu, type
cmd, and press Enter. - Type
ipconfigand note the IPv4 Address 1. (e.g.,192.168.1.15).
| cd dist | |
| node -e " | |
| const http = require('http'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| http.createServer((req, res) => { | |
| const file = path.join(process.cwd(), req.url); | |
| fs.readFile(file, (err, data) => { | |
| if (err) { res.writeHead(404); res.end(); return; } | |
| res.setHeader('Access-Control-Allow-Origin', '*'); |