bind to default qemu address

This commit is contained in:
Alexey Taymano
2025-09-09 20:10:39 +00:00
parent a19bed9d75
commit 8e0f0ecb0f
3 changed files with 3 additions and 5 deletions

View File

@@ -13,8 +13,7 @@ services:
cap_add:
- NET_ADMIN
ports:
- 8006:8006 # Web Viewer access
- 5000:5000 # Computer control server
- 8006:8006 # Web Viewer access
volumes:
- ./vm/win11iso/custom.iso:/custom.iso
- ./vm/win11setup/firstboot:/oem

View File

@@ -69,7 +69,6 @@ def capture_screen_with_cursor():
# make the cursor smaller
cursor = cursor.resize((int(cursor.width / 1.5), int(cursor.height / 1.5)))
screenshot.paste(cursor, (cursor_x, cursor_y), cursor)
# Convert PIL Image to bytes and send
img_io = BytesIO()
@@ -78,4 +77,4 @@ def capture_screen_with_cursor():
return send_file(img_io, mimetype='image/png')
if __name__ == '__main__':
app.run(host="127.0.0.1", port=args.port)
app.run(host="10.0.2.15", port=args.port)