microsoft / microsoft/WSL

How can programs in WSL access the IP of a physical machine running Windows 10? My PHP code is running in WSL, and MySQL 8.0 is installed on Windows 10. How can I configure a static IP to connect to the host machine's IP in PHP?

Open
#11,240 1 comment 1 reaction 0 assignees View on GitHub
feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

How can programs in WSL access the IP of a physical machine running Windows 10? My PHP code is running in WSL, and MySQL 8.0 is installed on Windows 10. How can I configure a static IP to connect to the host machine's IP in PHP?

Contributor guide

Open the contributing guide

Research direction

The issue names WSL, PHP, Windows 10, and MySQL 8.0 but does not identify a repository file, test, or specific failure. Start by reproducing the connection setup and reviewing the WSL host-networking and MySQL configuration involved; done means PHP running in WSL can connect to the Windows MySQL instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
databases, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.