IPs forward to the local network

5 replies [Last post]
quiliro
Offline
Joined: 02/24/2009

I have a program on a local workstation that asks to connect to 192.168.1.20. The workstation used to be 192.168.1.21. So both were in the same LAN. I have changed the IPs of both machines to 10.0.0.20 and 10.0.0.21, repectively but the app on 10.0.0.21 keeps trying to connect to 192.168.1.20 instead of 10.0.0.20.

My idea was to configure the router to forward all packets that go for 192.168.1.20 to 10.0.0.20. All traffic that goes to 192.168.1.20 will probably go to the router because it is the default gateway. The router has 2 IPs: 10.0.0.1 (LAN) and 192.168.1.2 (WAN).

quiliro@congresolibre.org
Offline
Joined: 10/28/2010

I have a program on a local workstation that asks to connect to
192.168.1.20. The workstation used to be 192.168.1.21. So both were in the
same LAN. I have changed the IPs of both machines to 10.0.0.20 and
10.0.0.21, repectively but the app on 10.0.0.21 keeps trying to connect to
192.168.1.20 instead of 10.0.0.20.

My idea was to configure the router to forward all packets that go for
192.168.1.20 to 10.0.0.20. All traffic that goes to 192.168.1.20 will
probably go to the router because it is the default gateway. The router
has 2 IPs: 10.0.0.1 (LAN) and 192.168.1.2 (WAN).

quiliro
Offline
Joined: 02/24/2009

I have placed a router in the middle of the two networks so that both networks can have the same network address.

Daniel Molina
Offline
Joined: 07/04/2009

On Fri, 13 Jul 2012 21:21:35 +0200 (CEST)
name at domain wrote:

> I have a program on a local workstation that asks to connect to
> 192.168.1.20. The workstation used to be 192.168.1.21. So both were
> in the same LAN. I have changed the IPs of both machines to 10.0.0.20
> and 10.0.0.21, repectively but the app on 10.0.0.21 keeps trying to
> connect to 192.168.1.20 instead of 10.0.0.20.

Do you have control over the machine where is installed the app?
If yes, What are the problems for changing IP where
the app on 10.0.0.21 tries to contact to? Probably it would be simpler.

quiliro
Offline
Joined: 02/24/2009

Yes I do but not control over the app.

quiliro@congresolibre.org
Offline
Joined: 10/28/2010

> If yes, What are the problems for changing IP where
> the app on 10.0.0.21 tries to contact to? Probably it would be simpler.
>

The router has 192.168.1.2 on its WAN address. It is not simpler.