Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #40296
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.178.197.196.134!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Select in one device but view on another |
| Date | Wed, 14 Jul 2021 02:53:28 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 46 |
| Message-ID | <2588613.mvXUDI8C0e@PointedEars.de> (permalink) |
| References | <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au> <1936879.oMNUckLgyt@PointedEars.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| Injection-Info | gwaiyur.mb-net.net; posting-host="178.197.196.134"; logging-data="26356"; mail-complaints-to="abuse@open-news-network.org" |
| User-Agent | KNode/4.14.10 |
| Cancel-Lock | sha1:PJBwMQjS9jh9ixlT97aA2HrBykM= |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| X-User-ID | U2FsdGVkX18gLwXjUS3/vJWjTyVHRTlGLPPaXUhD0bCcFI2AsRkqUQ== |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Xref | csiph.com comp.lang.javascript:40296 |
Show key headers only | 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
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