Jump to content

Rerouting IP requests internally


Recommended Posts

Guest Brock Hensley
Posted

Dedicated server has an application with the connection string IP hard coded

into an app and can't be changed. We want to reroute any requests for this

external ip to localhost since the new database is being hosted on the same

server as the app...

 

So how would I go about rerouting any requests for a certain external ip to

go to an internal ip?

  • Replies 5
  • Created
  • Last Reply
Guest Hal Rottenberg
Posted

Re: Rerouting IP requests internally

 

Brock Hensley wrote:

> So how would I go about rerouting any requests for a certain external ip to

> go to an internal ip?

 

You could try binding a second IP address to one of the NICs in this

server. As long as you can get ping to work, the app should too.

 

 

--

Hal Rottenberg <hal@halr9000.com>

Author, TechProsaic (http://halr9000.com)

Webmaster, Psi (http://psi-im.org)

Co-host, PowerScripting Podcast (http://powerscripting.net)

Guest Brock Hensley
Posted

Re: Rerouting IP requests internally

 

I though about that, adding the ip as a secondary, but wouldn't that cause a

conflict since it's a real IP? and would it force the app to talk to the

localhost acting as that ip?

 

 

"Hal Rottenberg" <hal@halr9000.com> wrote in message

news:OYW7BWnSIHA.5164@TK2MSFTNGP03.phx.gbl...

> Brock Hensley wrote:

>> So how would I go about rerouting any requests for a certain external ip

>> to go to an internal ip?

>

> You could try binding a second IP address to one of the NICs in this

> server. As long as you can get ping to work, the app should too.

>

>

> --

> Hal Rottenberg <hal@halr9000.com>

> Author, TechProsaic (http://halr9000.com)

> Webmaster, Psi (http://psi-im.org)

> Co-host, PowerScripting Podcast (http://powerscripting.net)

Guest Hal Rottenberg
Posted

Re: Rerouting IP requests internally

 

Brock Hensley wrote:

> I though about that, adding the ip as a secondary, but wouldn't that cause a

> conflict since it's a real IP? and would it force the app to talk to the

> localhost acting as that ip?

 

Yup, it sure could. I was assuming the old system was going away.

Obviously, the ideal situation here is to fix the app such that the

connection string can be specified at runtime. Your next best solution

would be to change the IP of the box you don't want it to go to anymore,

and then bind a second IP to localhost, thus preventing the flip-flop.

 

Failing that...you could play with a few things like VLANs, subnet

masks, route statements and so on to prevent a conflict maybe.

 

But I wouldn't recommend any of that. You just know something will

change and it'll bite you in the butt later and it'll take three days to

figure it out. :)

 

 

 

--

Hal Rottenberg <hal@halr9000.com>

Author, TechProsaic (http://halr9000.com)

Webmaster, Psi (http://psi-im.org)

Co-host, PowerScripting Podcast (http://powerscripting.net)

Guest Brock Hensley
Posted

Re: Rerouting IP requests internally

 

Yeah, unfortunately the client has hard coded the program to pull from a

certain external database server, now wants to host the database locally, so

we want to route any requests to the old db server to localhost basically.

We have no control over the external host / IP so routing is the only way,,

but I'm not sure how to go about doing it :-X Routing & Remote Access I'm

guessing?..

 

 

"Hal Rottenberg" <hal@halr9000.com> wrote in message

news:uM00LPpSIHA.1204@TK2MSFTNGP03.phx.gbl...

> Brock Hensley wrote:

>> I though about that, adding the ip as a secondary, but wouldn't that

>> cause a conflict since it's a real IP? and would it force the app to talk

>> to the localhost acting as that ip?

>

> Yup, it sure could. I was assuming the old system was going away.

> Obviously, the ideal situation here is to fix the app such that the

> connection string can be specified at runtime. Your next best solution

> would be to change the IP of the box you don't want it to go to anymore,

> and then bind a second IP to localhost, thus preventing the flip-flop.

>

> Failing that...you could play with a few things like VLANs, subnet masks,

> route statements and so on to prevent a conflict maybe.

>

> But I wouldn't recommend any of that. You just know something will change

> and it'll bite you in the butt later and it'll take three days to figure

> it out. :)

>

>

>

> --

> Hal Rottenberg <hal@halr9000.com>

> Author, TechProsaic (http://halr9000.com)

> Webmaster, Psi (http://psi-im.org)

> Co-host, PowerScripting Podcast (http://powerscripting.net)

Guest Brock Hensley
Posted

Re: Rerouting IP requests internally

 

I assigned the old db server's IP as a secondary on the new servers NIC and

it worked. Now pulling up the old external ip reroutes it basically to

127.0.0.1

 

 

"Brock Hensley" <brock.hensley@serverintellect.com> wrote in message

news:OjCsRpmSIHA.4196@TK2MSFTNGP04.phx.gbl...

> Dedicated server has an application with the connection string IP hard

> coded into an app and can't be changed. We want to reroute any requests

> for this external ip to localhost since the new database is being hosted

> on the same server as the app...

>

> So how would I go about rerouting any requests for a certain external ip

> to go to an internal ip?

>


×
×
  • Create New...