Sadly that line is already in my interfaces file, see a few posts earlier.
But I started to 'play' with the interfaces settings, googled a bit and finally changed the wlan0 block as follows:
Code: Select all
iface wlan0 inet static
No doubt this is plain wrong, but from the moment I added these lines I could suddenly log into the Pi every time, albeit without Internet access.
I finally decided on a compromise: Did a fresh install of the webserver distro I'm going to use, ran the tutorial again without implementing point 4 which is about NAT-ing and now it seems I have easy connection every time, without Internet of course. Seems to (getting cautious
) indeed work like a charm.
As I don't need the mobile device to access Internet anyway I'll settle for this compromise, for I need to start coding PHP. I have no clue why it works for you but not for me, or it should be that my wired router has the 192.168.1.1 address, but I don't think so. Hope someone else can try and see if he/she has better luck.