A Railgun if ever brought down to a man portable or even small unit portable (WW II pak 37) could spell a disaster for tanks. A railgun can speed up a kinetic energy projectile to mach five and have a tremendous range (250 miles). However it is unlikely to spell the end for tanks. There is talk that the tank is a dinosaur. This would be true with the current generation of armor and if portable railguns become as prolific as RPGs. However there is plenty of hope for tanks. Two new armor types are being experimented with and current railguns take up a small room. The two types of armor are liquid armor which would suddenly become very dense due to the squezzing together of molecules at the point where it was struck by a projectile. The second type of armor is electromagnetic armor which works as follows:
"ELECTROMAGNETIC ARMOR - A form of ACTIVE ARMOR that is an application of SMART ARMOR which offers protection as follows: (1) The penetrating jet of a shaped charge (SC) is detected; (2) an intense electrical discharge is created between electrically conductive plates, creating a powerful magnetic field; (3) the magnetic field interacts with the charged particles of the penetrating jet; and (4) magnetohydrodynamic instabilities occur, disrupting the jet. "
http://www.sew-lexicon.com/gloss_e.htm#ELECTROMAGNETIC ARMOR
Additionally active high powered laser defenses are starting to be employed. Suprisingly the Chinese supposedly have a high-powered laser that not only detects incoming projectiles but also can take out the thermal sights for enemy tanks.
"ELECTROMAGNETIC ARMOR - A form of ACTIVE ARMOR that is an application of SMART ARMOR which offers protection as follows: (1) The penetrating jet of a shaped charge (SC) is detected; (2) an intense electrical discharge is created between electrically conductive plates, creating a powerful magnetic field; (3) the magnetic field interacts with the charged particles of the penetrating jet; and (4) magnetohydrodynamic instabilities occur, disrupting the jet. "
http://www.sew-lexicon.com/gloss_e.htm#ELECTROMAGNETIC ARMOR
Additionally active high powered laser defenses are starting to be employed. Suprisingly the Chinese supposedly have a high-powered laser that not only detects incoming projectiles but also can take out the thermal sights for enemy tanks.