I
I
Ivan Vekov2021-04-25 19:58:07
ubuntu
Ivan Vekov, 2021-04-25 19:58:07

Why is the server not available through the browser, but through CURL - ok?

Good afternoon,

I decided to try out Laravel Octane, with the server running through Swoole. OS - Ubuntu 20

I start the server, it starts accepting requests on port 8000, I try cURL (localhost) - it responds normally. I open in the browser - "The page cannot be displayed" (connectionfailure).

firewalld, seinux - disabled.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Vasilyev, 2021-04-25
@vekov

Most likely the server is hanging on localhost 127.0.0.1, but you need to hang it on 0.0.0.0
Look:
https://www.swoole.co.uk/

T
toxa82, 2021-04-25
@toxa82

Would you write a curl command and where do you pull it from, and in the browser you prescribe the port in the address or knock on the default one?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question