[Closed]Bit Offtopic Network/Inet question
Is there a way to make a program think its connecting to an ip while its connecting to another (not hosts but ip!) [Edited by - Aidamina on July 31, 2005 1:57:40 AM]
-->My Site<--
Yeah, there are a few ways you could do it. What, exactly, are you trying to accomplish?
Well i want a program that internally connects through tcpip to an ip on the network or internet to be forced to use a custom ip without knowledge of the program.
Normal
Program---->192.168.0.1
Hack
Program----|192.168.0.1
| ---------|
|-->192.168.0.2
Normal
Program---->192.168.0.1
Hack
Program----|192.168.0.1
| ---------|
|-->192.168.0.2
-->My Site<--
You can do this on a router, using similar stuff as you use for NAT. Getting this to work correctly is rather tricky, though, and there is most likely a much simpler way to do what you want... again, what exactly are you trying to accomplish?
I'm trying to get a client from a mmorpg to connect to a little test server
-->My Site<--
For this situation, it really might be easier to mess with the client to get it to use a different hostname... the hostname might be in a string resource for the executable, or even in plaintext in a configuration file.
If you can't get this to work, then you will need to do tricky things with a router... if you have a linux box to use at this, read up on "ipchains".
If you can't get this to work, then you will need to do tricky things with a router... if you have a linux box to use at this, read up on "ipchains".
I can think of simpler solutions if you have control over the fake server.
1. If the client only needs to connect to the fake server, just give the fake server the real IP address. you may have to set up a route on the client (using route.exe)
Unless the servers are on the same network, this should work just fine.
2. If the fake server is going to relay the traffic to the real server, it should probably have 2 network cards. one a closed network with the fake ipaddress and the client on the same network, and the other for an external facing ip address.
1. If the client only needs to connect to the fake server, just give the fake server the real IP address. you may have to set up a route on the client (using route.exe)
Unless the servers are on the same network, this should work just fine.
2. If the fake server is going to relay the traffic to the real server, it should probably have 2 network cards. one a closed network with the fake ipaddress and the client on the same network, and the other for an external facing ip address.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement