Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #40296

Re: Select in one device but view on another

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Select in one device but view on another
Date 2021-07-14 02:53 +0200
Organization PointedEars Software (PES)
Message-ID <2588613.mvXUDI8C0e@PointedEars.de> (permalink)
References <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au> <1936879.oMNUckLgyt@PointedEars.de>

Show all headers | View raw


Thomas 'PointedEars' Lahn wrote:

> I am occasionally using case A: I am using my mobile phone as an Internet
> modem for my laptop (i.e. I am using mobile tethering via WLAN), which
> also
> means that the phone and the laptop are in the same network.  I can
> therefore use the IP address assigned to the laptop’s WLAN adapter (by the
> mobile phone) to access Web sites on the local (development) Web server on
> the laptop from the mobile phone.  I had to configure the Web server so
> that it reacts to that IP address which, fortunately, appears to be static
> (maybe it is based on the MAC address of the WLAN adapter of the laptop):
> 
> $ head /etc/apache2/sites-available/local
>   ServerName localhost
>   ServerAlias 127.0.0.1
>   […]
> 
> # home
>   […]
>   ServerAlias 192.168.x.y
> 
> whereas the latter address is IPv4 address assigned to my laptop’s WLAN
> adapter.

Correction: This directive was for another use-case.  Apparently the only 
directive that is required for case A, is the “Allow” directive below:

  <Directory "$DOCUMENT_ROOT">
    […]
    Order deny,allow
    Deny from all
    […]
# WLAN (Android)
    […]
    Allow from 192.168.43
  </Directory>

whereas $DOCUMENT_ROOT is the document root of this virtual Apache host, and 
192.168.43.0/24 is the subnet that is used by my mobile phone when it is 
used for tethering.  (I do not find any other configuration file where “.43” 
occurs.)
 
-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-08 08:51 +1000
  Re: Select in one device but view on another JJ <jj4public@gmail.com> - 2021-07-08 06:04 +0700
  Re: Select in one device but view on another Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-07-07 23:09 +0000
    Re: Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-08 12:57 +1000
      Re: Select in one device but view on another "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-07-11 14:33 -0700
  Re: Select in one device but view on another Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-07-14 02:28 +0200
    Re: Select in one device but view on another Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-07-14 02:53 +0200
      Re: Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-14 15:15 +1000
        Re: Select in one device but view on another Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-07-14 23:19 +0200
          Re: Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-15 09:01 +1000

csiph-web