Senin, 07 November 2016

Bristol Digest, Vol 669, Issue 1

Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk

You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."


Today's Topics:

1. Re: WP Local Server "Not Connecting" (David Fear)
2. Re: WP Local Server "Not Connecting" (Martin Moore)
3. Re: WP Local Server "Not Connecting" (Peter Hemmings)


----------------------------------------------------------------------

Message: 1
Date: Sun, 6 Nov 2016 16:23:44 +0000
From: David Fear <david@dfear.co.uk>
To: Peter Hemmings <peternsomerset@virginmedia.com>, Bristol and Bath
Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] WP Local Server "Not Connecting"
Message-ID: <1ae7daac-f43e-68ca-3205-3e1f41d14abe@dfear.co.uk>
Content-Type: text/plain; charset=utf-8; format=flowed

On 05/11/16 21:12, Peter Hemmings via Bristol wrote:
> Hi,
>
> Just got some time to have another go at seeing the webpage (wordpress
> Site) on local lan.
>
>
> On 30/10/16 11:58, Amias Channer via Bristol wrote:
>> Hello Peter,
>>
>> Are you still running a restrictive local firewall on your laptop ?
>
> I think I tried it with not firewall but not sure!
>
>>
>> A good tool for network diagnosis on android is an app called fing , it
>> scans your network for hosts and let's you scan them for services.
>
> I have now put it on my Android and can see my PC on 192.168.0.19.
>
> I did have a Upnp server (Serviio) running and have now removed it for
> simplicity.
>
> I can see the website on localhost using the PC
> I can ping it via "Fing" on the Android.
> I had SElinux running "enforcing" but with no warnings, set it to
> permissive to rule that out.
> httpd is set to run as apache user and apache group with me (user peter)
> in group apache.
>
> I still cannot connect via Android on Firefox using the IP address.
> It does change in the url box to "localhost" then reports "Unable to
> connect".
>
> What simple thing am I doing wrong! is it on the PC or Android?
>
> Nothing is happening in "httpd access_log20161105" this evening BUT
> there was an android line at 11:30:38 from 192.168.0.13 (my Android IP
> address), there may be a clue there but its a bit beyond my comprehension!:
>
> ::1 - - [05/Nov/2016:11:24:59 +0000] "OPTIONS * HTTP/1.0" 200 - "-"
> "Apache/2.4.23 (Fedora) PHP/5.6.27 (internal dummy connection)"
> 192.168.0.13 - - [05/Nov/2016:11:30:38 +0000] "GET / HTTP/1.1" 301 - "-"
> "Mozilla/5.0 (Android 5.1; Mobile; rv:50.0) Gecko/50.0 Firefox/50.0"
> ::1 - - [05/Nov/2016:12:11:38 +0000] "GET / HTTP/1.1" 200 10200 "-"
> "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> ::1 - - [05/Nov/2016:12:11:38 +0000] "GET /favicon.ico HTTP/1.1" 404 209
> "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> ::1 - - [05/Nov/2016:12:11:38 +0000] "GET /favicon.ico HTTP/1.1" 404 209
> "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> 192.168.0.19 - - [05/Nov/2016:12:12:39 +0000] "GET / HTTP/1.1" 301 - "-"
> "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> ::1 - - [05/Nov/2016:12:12:39 +0000] "GET / HTTP/1.1" 200 10200 "-"
> "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
>
>>
>> Cheers
>> Amias
>>
>> On 30 Oct 2016 9:20 a.m., "Peter Hemmings via Bristol" <
>> bristol@mailman.lug.org.uk> wrote:
>>
>>> Hi,
>>>
>>> I am trying to set up a demo Wordpress site and have installed LAMP and
>>> made a Wordpress local server but cannot connect to it.
>>>
>>> I can run it via "localhost" and the lan address (192.168.0.17) on my
>>> laptop, but from a smartphone on the lan it just states "not
>>> connecting".
>>>
>>> What have I forgot to do!?
>>>
>>> Regards
>>>
>>> --
>>> Peter H
>>>
>>> _______________________________________________
>>> Bristol mailing list
>>> Bristol@mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>
> Regards
>
Hi Peter

Just to check: the apache server is running on the laptop?

1) you need to check that the android phone is on the same network as
the laptop and the PC.

2) on your android phone you should use Fing to do both a scan of the
network, and if the your laptop is found then do a service scan on the
laptop.

- Using Fing you should see your router, laptop, PC and android phone.

- Fing: if you found your laptop and have done a service scan, you
should should at least see http on port 80 and mysql on port 3306.

This is the most useful comment:
> I still cannot connect via Android on Firefox using the IP address.
> It does change in the url box to "localhost" then reports "Unable to
> connect"

if wordpress is installed on your laptop, you can't connect to it from
the Desktop (or any other device) using http://localhost/.

Can you connect to the "wordpress" on the laptop, FROM the desktop PC?

If you can't connect to the laptop from the Desktop Pc or your android
phone, then either apache server, mysql or wordpress is misconfigured.

--
Regards

-----------------------------------
Dave Fear :: david@dfear.co.uk

Order your free giffgaff SIM card through my page and get 5 pounds free
credit http://t.co/z1KJF5y

------------------------------

Message: 2
Date: Sun, 06 Nov 2016 16:59:28 +0000
From: Martin Moore <martinm@it-helps.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] WP Local Server "Not Connecting"
Message-ID: <E5DAFCD1-8B48-45EF-A590-CB0C0CA3221B@it-helps.co.uk>
Content-Type: text/plain; charset="UTF-8"

If I understand your email

> I still cannot connect via Android on Firefox using the IP address.
> It does change in the url box to "localhost" then reports "Unable to
> connect".

Seems to imply that the 'server' ip you are entering is the same as your android device. Either that or you have a Host file entry/odd routing setup somewhere. That's the only way that your Android would think that ip is 'localhost'


Martin.


On 06/11/2016, 16:23, "Bristol on behalf of David Fear via Bristol" <bristol-bounces@mailman.lug.org.uk on behalf of bristol@mailman.lug.org.uk> wrote:

On 05/11/16 21:12, Peter Hemmings via Bristol wrote:
> Hi,
>
> Just got some time to have another go at seeing the webpage (wordpress
> Site) on local lan.
>
>
> On 30/10/16 11:58, Amias Channer via Bristol wrote:
>> Hello Peter,
>>
>> Are you still running a restrictive local firewall on your laptop ?
>
> I think I tried it with not firewall but not sure!
>
>>
>> A good tool for network diagnosis on android is an app called fing , it
>> scans your network for hosts and let's you scan them for services.
>
> I have now put it on my Android and can see my PC on 192.168.0.19.
>
> I did have a Upnp server (Serviio) running and have now removed it for
> simplicity.
>
> I can see the website on localhost using the PC
> I can ping it via "Fing" on the Android.
> I had SElinux running "enforcing" but with no warnings, set it to
> permissive to rule that out.
> httpd is set to run as apache user and apache group with me (user peter)
> in group apache.
>
> I still cannot connect via Android on Firefox using the IP address.
> It does change in the url box to "localhost" then reports "Unable to
> connect".
>
> What simple thing am I doing wrong! is it on the PC or Android?
>
> Nothing is happening in "httpd access_log20161105" this evening BUT
> there was an android line at 11:30:38 from 192.168.0.13 (my Android IP
> address), there may be a clue there but its a bit beyond my comprehension!:
>
> ::1 - - [05/Nov/2016:11:24:59 +0000] "OPTIONS * HTTP/1.0" 200 - "-"
> "Apache/2.4.23 (Fedora) PHP/5.6.27 (internal dummy connection)"
> 192.168.0.13 - - [05/Nov/2016:11:30:38 +0000] "GET / HTTP/1.1" 301 - "-"
> "Mozilla/5.0 (Android 5.1; Mobile; rv:50.0) Gecko/50.0 Firefox/50.0"
> ::1 - - [05/Nov/2016:12:11:38 +0000] "GET / HTTP/1.1" 200 10200 "-"
> "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> ::1 - - [05/Nov/2016:12:11:38 +0000] "GET /favicon.ico HTTP/1.1" 404 209
> "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> ::1 - - [05/Nov/2016:12:11:38 +0000] "GET /favicon.ico HTTP/1.1" 404 209
> "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> 192.168.0.19 - - [05/Nov/2016:12:12:39 +0000] "GET / HTTP/1.1" 301 - "-"
> "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
> ::1 - - [05/Nov/2016:12:12:39 +0000] "GET / HTTP/1.1" 200 10200 "-"
> "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0"
>
>>
>> Cheers
>> Amias
>>
>> On 30 Oct 2016 9:20 a.m., "Peter Hemmings via Bristol" <
>> bristol@mailman.lug.org.uk> wrote:
>>
>>> Hi,
>>>
>>> I am trying to set up a demo Wordpress site and have installed LAMP and
>>> made a Wordpress local server but cannot connect to it.
>>>
>>> I can run it via "localhost" and the lan address (192.168.0.17) on my
>>> laptop, but from a smartphone on the lan it just states "not
>>> connecting".
>>>
>>> What have I forgot to do!?
>>>
>>> Regards
>>>
>>> --
>>> Peter H
>>>
>>> _______________________________________________
>>> Bristol mailing list
>>> Bristol@mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>
> Regards
>
Hi Peter

Just to check: the apache server is running on the laptop?



1) you need to check that the android phone is on the same network as
the laptop and the PC.

2) on your android phone you should use Fing to do both a scan of the
network, and if the your laptop is found then do a service scan on the
laptop.

- Using Fing you should see your router, laptop, PC and android phone.

- Fing: if you found your laptop and have done a service scan, you
should should at least see http on port 80 and mysql on port 3306.

This is the most useful comment:
> I still cannot connect via Android on Firefox using the IP address.
> It does change in the url box to "localhost" then reports "Unable to
> connect"

if wordpress is installed on your laptop, you can't connect to it from
the Desktop (or any other device) using http://localhost/.

Can you connect to the "wordpress" on the laptop, FROM the desktop PC?

If you can't connect to the laptop from the Desktop Pc or your android
phone, then either apache server, mysql or wordpress is misconfigured.

--
Regards

-----------------------------------
Dave Fear :: david@dfear.co.uk

Order your free giffgaff SIM card through my page and get 5 pounds free
credit http://t.co/z1KJF5y

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

------------------------------

Message: 3
Date: Mon, 7 Nov 2016 00:04:41 +0000
From: Peter Hemmings <peternsomerset@virginmedia.com>
To: Martin Moore <martinm@it-helps.co.uk>, Bristol and Bath Linux User
Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] WP Local Server "Not Connecting"
Message-ID: <be09cd5a-0de3-7830-c91d-4fb2e3579f45@virginmedia.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Sorry for not getting back earlier, I will not have too much time to
look again for a day or so but will stop confusing things and just use
Android with "Fink" and the laptop.

On 06/11/16 16:59, Martin Moore via Bristol wrote:
> If I understand your email
>
>>> I still cannot connect via Android on Firefox using the IP
>>> address. It does change in the url box to "localhost" then
>>> reports "Unable to connect".
> Seems to imply that the 'server' ip you are entering is the same as
> your android device. Either that or you have a Host file entry/odd
> routing setup somewhere. That's the only way that your Android would
> think that ip is 'localhost'
>

Just done a quick test with Laptop/Android:

Url "localhost" on laptop brings up the website.
Found WiFi IP (192.168.0.17) and that brings up website "localhost" OK


Used "Fing" on Android and scanned 192.168.0.17.
It shows 2 services port 80 http and 3306 mysql.

When I try to connect from fing to port 80 via firefox it quickly
changes to localhost and says "unable to connect"

So I assume I need to configure something on the Android or should it
just connect as I have a service, assuming its configured correctly on
the laptop!!?

PS I can ping from fing!!

FYI I am typing this on my pc on wired ethernet at 192.168.0.12 and
noticed it too has http on 80 and mysql on 3306 (and switches to
localhost when I try to open the site) so it looks like something I have
configured wrongly or not changed.

Could WP or mysql wrongly configured still cause this problem even
though I can see the services running from another device?

I will try again later when I get more time.

Regards
--
Peter H

------------------------------

Subject: Digest Footer

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

------------------------------

End of Bristol Digest, Vol 669, Issue 1
***************************************

Tidak ada komentar:

Posting Komentar