Jump to content
  • Advertisement
Sign in to follow this  
Aidamina

[Closed]Bit Offtopic Network/Inet question

This topic is 4767 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement
Yeah, there are a few ways you could do it. What, exactly, are you trying to accomplish?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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".

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!