我正在Linux (WSL2)上的Docker容器中运行一个PHP服务器。我想将Xdebug连接到这个进程,但是找不出要为此使用哪个IP。在Windows和Mac上,xdebug.idekey=host.docker.internal变量自动映射正确的IP,但是在Linux中这是不可用的。我已经尝试过从ip show route和hostname -I手动输入来自主机和端口容器的IP,但它们也不起作用(而且只是临时修复,即使它们确实工作过)。所以问题是:如何获得正确的IP</em
(input('how many time do you want to change your ip: '))
os.system('sudo ifconfig wlo1 up')
print('Your Current IP Address is ',ip) 下面显示的是错误: inputtime to change