Am 20.03.20 um 19:05 schrieb Per Jessen:
Daniel Bauer wrote:
The computer and the phone are connected to the same router, both have addresses 192.168.x.x.
I can, for example, use the App SSHelper and rsync from my phone to the computer, so in principle the connection works.
I read a lot in google, open this, open that, but I am bit afraid that I could open my local server to the world...
You don't need to worry - with IPv4, you are behind an IPv4 NAT mechanism, unless you explicitly configure it to forward stuff to your webserver, you're safe.
In earlier projects I uploaded the files to the online-web-server in a htaccess protected folder, but it would be much more comfortable if I could simply see how my CSS magic works using the local server...
Assuming you have firewalld, my first suggestion would be to shut it down, then see if your dev website works from your mobile. If it works and you are more comfortable with having firewalld running, start it up again. You just need to configure it to open port 80. I can't help with that, I don't use firewalld.
Yes, I have firewalld running, I know since 5 minutes :-) I stopped it, and - trara! - it (kind of) works. So now I have two questions: - can I open port 80 in firewalld settings (I guess I'll find them somewhere in Yast) without the risk to compromise my computer or the files that are within the local apache directory htdocs...? - what could be the reason for the "kind of" described below? Kind of: I get the connection to the server http://192.158.1.x and it show's apaches default index-page "it works". Now when I call my file http://192.158.1.x/Entwicklung/project/index.php it shows the text of the index-file, but not the images, nor does it use the CSS. I have the same result with another project that is online on my internet-webserver and that works on the webserver... On my local computer the path is /srv/www/htdocs/Entwicklung/project within the php-file pathes are relative it works on the same computer, but not on the phone (but it works on the phone when calling it from the online-internet-server) Thanks for the help. Daniel -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org