Home / Android Tips / Running a website from your phone

Running a website from your phone

I’ve were given an Android handset this is amassing mud and, even though the digital camera is cracked and the display screen most effective works when it feels adore it, I sought after to make some use of it. So, after a bit little bit of fiddling, I’ve grew to become it right into a internet server. No longer only a internet server for exhibiting a couple of flat HTML recordsdata, however person who’ll run WordPress. The result’s working on coolsmartphone.otzo.com – right here, for the ones of you who could be , is how I did it.

Running a website from your phone

Originally, there’s a couple of issues. Again within the day after I labored for a ISP my broadband got here with a hard and fast exterior IP deal with. This could by no means exchange, so I may merrily level domains to that IP and it could simply paintings. Now, on the other hand, I’ve were given a cheap-save fibre connection from EE and the IP deal with will exchange if the router will get rebooted or drops connection. So, if I’m to indicate a site to this IP I’ll want one thing to replace that. Right here I selected an organization referred to as ChangeIP.com. They provide a Dynamic DNS carrier, and you’ll be able to make a choice from a variety of subdomains. I selected coolsmartphone.otzo.com as a result of, smartly… it appeared like a good suggestion on the time. Subsequent, I wanted one thing to inform the ChangeIP web page when my house IP modified. Right here I used one thing referred to as SSH Server. The unfastened model most effective allows you to put one “server” into motion – I preferably sought after two. One for an SSH server in order that I may connect with my telephone remotely and any other as a DNS Updater carrier. Finally I simply plumbed for the DNS Updater carrier, which is simple to setup. You simply select “ChangeIP” from the drop-down, put within the ChangeIP internet credentials after which the Android app will feed the present / new IP for your house broadband to them in order that your area is going to the appropriate position. This can also be set to begin at boot and can do the whole lot with out you considering.

Running a website from your phone

Subsequent downside then, and that’s getting all this operating externally. Happily EE gave me a router with NAT’ing and PAT’ing, which means that I mainly say..

“Hiya, any internet visitors coming in from outdoor will have to pass to this tool in my community in this port”

Running a website from your phone

That is the place you perhaps hit downside 3, as a result of maximum broadband / fibre routers are simply setup to dish out DHCP (dynamic) IP addresses internally, so each time you flip for your smartphone you’ll perhaps get a unique IP. I had to enter the router, regulate the DHCP scope after which pass into the WiFi settings at the telephone to inform it that I sought after to stay a static IP which is outdoor of the DHCP scope.

Running a website from your phone

Subsequent, and this bit is non-compulsory in reality, however I do like a component of far flung get right of entry to – I setup an SSH server. The sooner app I discussed only a minute in the past would most effective allow you to setup one carrier sooner than you needed to get started paying, so I downloaded this SSH server app which is quite easy and simply asks for a username after which begins the carrier on port 2222.

Ahh sure, there’s any other “gotcha”. Android received’t allow you to use the “correct” internet and SSH ports except you get started rooting your telephone. I’m the usage of a bog-standard handset right here and I’ve now not rooted it or messed round an excellent deal. So, again on my FTTC (fibre) router, I inform it that..

“If any visitors is available in externally on port 22, whack it thru to the mounted IP of the telephone on port 2222 as an alternative”

That labored a deal with, and it let me transfer across the document machine and take a look round. I’m a geek finally.

Running a website from your phone

The general, and possibly maximum vital phase, is to in reality get your self a internet server app. That is the place I did in reality spend just a little of money, nevertheless it was once most effective £2.27. Bit Internet Server is so easy to get began and springs with a MySQL, Apache and PHP server. The whole thing in a single boat. There’s a PHPMyAdmin too, so you’ll be able to setup a brand new database.

This will likely fan the flames of on any other unusual port – 8080. Once more, I needed to tweak the house broadband router to redirect any requests coming in at the “typical” internet port (80) to the inner port of 8080 at the mounted IP of the Android smartphone I used to be the usage of.

Running a website from your phone

Subsequent, to put in WordPress I simply browsed at the telephone and downloaded the ZIP document. After unpacking it on my telephone, I put the ensuing recordsdata into /sdcard/www – the place all of the internet server recordsdata are positioned. Then it’s only a subject of surfing to the web site, going in the course of the set up procedure and – bingo – I’ve were given me a WordPress web site working from my telephone. I’ve to mention, it really works a deal with. Give it a shot on coolsmartphone.otzo.com as a result of, when you click on that hyperlink, you’ll be surfing a web site which is hosted on a telephone which is dangling from a plug in my storage.

Microsoft Lumia 950 XL Unboxing

About admin

Check Also

15 Cool Telegram Messenger Tricks You Should Know

15 Cool Telegram Messenger Tricks You Should Know

Slowly and certainly, Telegram has change into some of the standard messaging products and services …

Leave a Reply

Your email address will not be published. Required fields are marked *