Java External MySQL Database Connection -
i have java application requires connection external mysql database. however, have restricted list of ip addresses able log computer.the issue 1 of our clients travels , therefore has dynamic ip address. have chosen route use http://www.noip.com take consideration dynamic ip address. however, there's issue on how link 2 programs together. java application still refers [ip address].hlrn.qwest.net rather [sub-domain].no-ip.biz.
is there function can use in java override ip address used connect database?
thanks.
ideally, connection string should have been externalised modified easily. if it's more of policy constraint on ips think whichever way it; still considered violation. anyway, i'm assuming have given thought.
on os have hosts file can used override dns name resolution. constraint can map ips not hostname hostname. alias hostname that's mapped ip. example, if add below
127.0.0.1 [ip address].hlrn.qwest.net
to hosts file (which way located @ c:\windows\system32\drivers\etc\hosts
on windows) java application start making connections localhost only. so, add following redirect , make java application connect no-ip.biz
instead.
ip.add.re.ss [sub-domain].no-ip.biz [ip address].hlrn.qwest.net
to make dns process automatic , redirect without dealing actual ip not easy , requires fiddling own dns setup.
Comments
Post a Comment