Monday, March 28, 2016

WAMP - a development platform

Uniform Server Zero XI is a free and open source Windows Apache-MySQL-PHP-Perl server suite.   

Essentially, you download and unzip into a directory and you can run the WAMP (no installation).  The only caveat is you need Microsoft VC9 32-bit libraries. This is mentioned in the important readme in the directory.

I'm exploring installing Wordpress with this  Uniform, instructions here . The problem I am having is wordpress' plugins and themes do not download nor update. So I will have to trouble shoot that.

Update : The reason the download for plugins doesnt work is because the CURL dll was not enabled. Need to go to php admin and enable this CURL module.


Thursday, March 24, 2016

Home Networking - Two Routers - Two WAN - Multiple PCs - and Wireless Devices

Home Networking - Two Routers - Two WAN - Multiple PCs - and Wireless Devices


The title is a mouthful, but today at Everything Binary, we are going to talk about home networking in a very unique and special environment.  When I was thrown with this problem, I googled everywhere for a solution, and even called the telco to see if they knew of a solution, but none to be found anywhere.  No one could offer a solution

What does a regular home network look like ?

Simply google and you can find a typical image like this :



The router is simply set as default router settings, and would DHCP  NAT ip addresses to all your home devices.  I think most people somewhat understand this model, and if not, can easily find resources on the internet that would explain this in detail.

A step beyond the above diagram, is the fact that your house maybe bigger, or have obstacles that block wifi signals to farther distances. So one would need to "extend" the coverage area.  This is usually done with a Wifi repeater, or a wired-bridge or wireless-bridge.  Some people have a spare wireless router, so they configure the router to become an Access Point (this is done by turning off the DHCP feature off the router) - again, details are all over the place on the internet on this subject).
A diagram for such a setup :


The powerline adapters are just showing examples where cabling of ethernet cables to those points are difficult, so you use a powerline solution to bridge the gap (at the expense of some performance).


The NEW problem 


As ISPs deploy newer and faster speed solutions of over 500mbps, Fibre Optic lines are deployed. But ISPs still have older Cable technology sitting there, so they bundle both solutions to you, promising that two networks are better than one, because you can have larger internet wifi coverage of your house. 

So, is the claim true ? The answer is Yes and also No. If you have two internet WAN ports coming into your house, say one Cable line offering you 300mbps and a Fibre line offering you 1Gbps.  How would your house network look like?

It will look somewhat like two of the first diagram.and since there are two routers place physically at two distant locations, your wifi coverage would be "extended"

But what is the problem? The problem is you have two networks.  Machines or devices on one network cannot talk to other devices on the other network.  Consider if you have a printer one network A, and you are now in network B and you cant access the printer easily.  Similarly, if you have a media center, housing all your videos, photos and music - they will all only appear on one network and not visible to the other network.


The Solution to the problem

Now, this is where is article will become interesting - and different from all other articles on the internet (so I hope).

We need to bridge the two networks so that they believe that they are on ONE network even though there are two WAN ports (or connections to the internet).  I'll use the same diagram but modify it so that it shows two internet networks coming into the house



The diagram does not explain the configuration, 

 Let me start by talking about how to setup Network A side :

You have a Router (in Blue), which gets an IP from the DSL modem, does DHCP and assigns ip address to the devices.  We make sure that this router will only assign ranges from 192.168.0.10 through to 192.168.0.99.  We then make sure we reserve 192.1.68.0.10 and 192.168.0.11 in the router's setting  for the PCs or desktop that never moves. This will make sure the DHCP will never assign these numbers to any other devices.  On these PCs, you will configure static IPs for them so they will never change.  The reason why you do not do the same for the laptop, is you may move the laptop to another part of your house where Network B resides, and you want that laptop to still work seamlessly.

Now for Network B side :

You will setup the router's IP to start at 192.168.0.100 - this also means to configure the router, you need to use this IP address.  You then make sure this DHCP only dishes out IP ranges 192.68.0.101 through to 192.68.0.199.  If you have PCs or stationary unmovable devices here, you would do the static IP like for network A.

The powerline connecction to the two routers goes to the LAN ports. If they can be linked with ethernet cable, even better.

For your wireless network, setup the same SSID names on both routers, and your mobile devices will connect seamlessly across A or B network.  One caveat is that sometimes you have no control which Internet the mobile device will actually use even if you connect to network B router, you may acquire an IP assigned by Network A's router and hence utilize the internet connection of Network A instead of network B.  This has some performance impact, especially if you are using powerline connection between the two routers.


Essentially, the above method will make two networks (driven by two internet connections), into one network with the 192.168.0.xxx

Wa-la.... a solution to utilize two internet service and merge them to one network so that your devices at home work together as ONE network.

Hope this is everything you need if you have the more than one internet service into your home and need a solution to make one network. Here are Everything Binary, I hope you have FOUND something useful.


PS.  For residents in Singapore, using Starhub's Dual-Broadband service, or even Viewqwest's 2Gbps service, and you want to merge your dual service into one network, you can consider giving this a try.











Tuesday, March 8, 2016

UE Megaboom Bluetooth speaker review

Society6

Today I just signed up with Society6.com.   A site where you can publish your artwork to be printed on various media for sale to the public.

The verification process requires you to link a paypal to them and pay a $1 fee.  Afterwhich you can post stuff for sale - I'll post more when I manage to do that.

Monday, March 7, 2016

Free domain name?

dot,tk

Get your free domain here up to 12 months 8) not bad.... for someone who just need a domain name ;)

I've tried to create everythingbinary.tk and it worked. Although the edit links if I used the tk domain doesnt work.

Sunday, March 6, 2016

The Double-NAT problem

I just realized that a MyRepublic Fiber plan account will create a Double-NAT problem.

What this means is the ONT device that connects to the fiber point, will already do NAT (Network Address Translation) once. That port is then connected to a wireless router (in my case an ASUS router).

So as usual, the ASUS router gives out NATed address in the range of 192.168.1.xxx

But when I observed what WAN address the ASUS router is getting, I get 172.22.23.230.

But I know my public IP address should be something like 103.252.xxx.xxx

What that means to me, is I cannot use the DDNS feature on the router. And there is no way I can get around it, unless i subscribe for a static IP address (which cost some money).


Anyone figured out how to prevent the 2nd NAT? Perhaps setting up the Asus router as a bridge or access point only? not as a router?

--- Update 7 Mar 2016 ---

There is no solution to the Double NAT problem, especially since I have no access to the Fiber box, cannot configure port forwarding nor DMZ.  So it would appear the best solution is pay My Republic $50 to get a static IPv4 address.







Friday, March 4, 2016

Kodi (former XBMC)

I saw youtube on Kodi setup that I thought is good.
Eventually I must compile a set of instructions just for Singapore Movies and TV enthusiasts.


This is a good guide.

Wednesday, March 2, 2016

Wordpress Setup




I came across this article that teaches you how to install XAMPP and Wordpress on your Windows 10. Pretty comprehensive step by step instructions.. follow the link below :


https://premium.wpmudev.org/blog/setting-up-xampp/



Tuesday, March 1, 2016

Home Automation

Home Automation Resource

I figured that this site, "Everything Binary" may be a little too broad. As such I am testing to spring board the "Home Automation Resource Site" (which is hosted at x10hosting). This will free up EverythingBinary from covering Smart Homes type articles and maybe focus more on software arena.

Another change is that I'm trying out Wordpress on x10 Hosting, coz for whatever reason, Google had removed the Blogger App from the iTunes store.  So now it becomes hard to publish stuff on the move on Blogger for me. 


Latest update : Today (7 Mar 2016), I found my Home Automation Wordpress site suddenly disappeared.. So much for free hosting at x10hosting.com All my posts are gone, and the visitors were just picking up. Bummer