beyondcode / beyondcode/herd-community

[Bug]: Can't access local network from PHP on macOS

Open
#1,703 0 comments 0 reactions 0 assignees View on GitHub
macOS
Dominant language
No language data
Stars
122
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### Platform

macOS

### Operating system version

macOS Tahoe 26.4.1 (25E253)

### System architecture

ARM64 (M1, M2, etc)

### Herd Version

1.28.0

### PHP Version

8.4.21

### Bug description

Herd doesn't seem to register the PHP CLI in the macOS security context.
So in the Security & Privacy settings I can't give it access to my local network and the Http calls from Laravel fail.

### Steps to reproduce

Install Herd, try to connect to a local IP from the CLI.

### Relevant log output

```shell
cURL error 7: Failed to connect to 192.168.x.x port x after 2 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://192.168.x.x
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.