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 best works when it feels adore it, I sought after to make some use of it. So, after a bit of 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 information, 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

Initially, there’s a couple of issues. Again within the day once I labored for a ISP my broadband got here with a set exterior IP cope with. This could by no means exchange, so I may merrily level domains to that IP and it could simply paintings. Now, then again, I’ve were given a cheap-save fibre connection from EE and the IP cope 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 known as ChangeIP.com. They provide a Dynamic DNS provider, and you’ll be able to choose between a variety of subdomains. I selected coolsmartphone.otzo.com as a result of, smartly… it looked like a good suggestion on the time. Subsequent, I wished one thing to inform the ChangeIP site when my house IP modified. Right here I used one thing known as SSH Server. The loose model best permits you to put one “server” into motion – I preferably sought after two. One for an SSH server in order that I may hook up with my telephone remotely and some other as a DNS Updater provider. In any case I simply plumbed for the DNS Updater provider, which is simple to setup. You simply make a choice “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 fitting position. This can also be set to start out at boot and can do the whole lot with out you considering.

Running a website from your phone

Subsequent drawback then, and that’s getting all this running externally. Fortunately EE gave me a router with NAT’ing and PAT’ing, this means that I mainly say..

“Good day, any internet site visitors coming in from outdoor will have to move to this software in my community in this port”

Running a website from your phone

That is the place you perhaps hit drawback 3, as a result of maximum broadband / fibre routers are simply setup to dish out DHCP (dynamic) IP addresses internally, so each and every time you flip to your smartphone you’ll perhaps get a special IP. I had to enter the router, adjust the DHCP scope after which move 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 not obligatory in point of fact, however I do like a component of faraway get entry to – I setup an SSH server. The sooner app I discussed only a minute in the past would best can help you setup one provider sooner than you needed to get started paying, so I downloaded this SSH server app which is slightly easy and simply asks for a username after which begins the provider on port 2222.

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

“If any site visitors is available in externally on port 22, whack it via to the fastened 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 in any case.

Running a website from your phone

The general, and in all probability maximum vital section, is to in fact get your self a internet server app. That is the place I did in fact spend a little of money, but it surely used to be best £2.27. Bit Internet Server is so easy to get began and springs with a MySQL, Apache and PHP server. The entirety in a single boat. There’s a PHPMyAdmin too, so you’ll be able to setup a brand new database.

This may increasingly stir up on some other atypical port – 8080. Once more, I needed to tweak the house broadband router to redirect any requests coming in at the “ordinary” internet port (80) to the inner port of 8080 at the fastened IP of the Android smartphone I used to be the use 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 information into /sdcard/www – the place all of the internet server information are situated. Then it’s only a topic of surfing to the website, going in the course of the set up procedure and – bingo – I’ve were given me a WordPress website 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 website which is hosted on a telephone which is dangling from a plug in my storage.

Microsoft Lumia 950 XL Unboxing

About Editor

Check Also

oneplus 6s super slo mo outed by companys india website - OnePlus 6’s Super Slo Mo outed by company’s India website

OnePlus 6’s Super Slo Mo outed by company’s India website

” Live life in Super Slo Mo,” the tagline checks out. “Decrease time and experience …

Leave a Reply

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

%d bloggers like this: