cytopia / cytopia/devilbox

[Howto]: Sites cannot communicate with each other?

Open
#1,033 0 comments 0 reactions 0 assignees View on GitHub
Community help wanted question
Dominant language
PHP
Stars
4.5k
Forks
652
PR merge metrics
No merged PRs in 30d

Description

### Have you already checked elsewhere?

- [X] I have read the [Devilbox documentation](https://devilbox.readthedocs.io/en/latest/)
- [X] I have checked the [Devilbox Troubleshooting Guide](https://devilbox.readthedocs.io/en/latest/)
- [X] I have checked the [Devilbox FAQ](https://devilbox.readthedocs.io/en/latest/support/faq.html)
- [X] I have checked the [Devilbox Howto](https://devilbox.readthedocs.io/en/latest/support/howto.html)
- [X] I have checked the [Devilbox Forum](https://devilbox.discourse.group/)
- [X] I have checked [existing issues](https://github.com/cytopia/devilbox/issues)
- [X] I have googled already with no luck
- [ ] I have not done any of the above

### What are you struggling with?

I have two websites:
site1.dvl.to (php 5.6)
site2.dvl.to (php 8.1)

I have a php script on site1.dvl.to that do a curl request to site2.dvl.to (with CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER set to false).
I get the following error:
cURL error (7): Failed to connect to site2.dvl.to port 443: Connection refused

If I ping site1.dvl.to and site2.dvl.to via shell.sh of devilbox, they ping correctly.

Any idea what is wrong?

### What have you tried already?

If I ping site1.dvl.to and site2.dvl.to via shell.sh of devilbox, they ping correctly.

### What is your goal?

To allow sites on devilbox to commnicate with each other.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the curl request from site1.dvl.to to site2.dvl.to using the Devilbox shell.sh environment, then inspect the Docker networking and HTTPS listener involved. Compare this with the successful ping results and determine what prevents the connection on port 443; done means the two sites can communicate successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.