Fixed minor path issues.

Fixed issues which were interfering with efficient operation when TPS is
moved between different paths. Fixed Hard-Coded server IP bug.