You are not logged in.
Hi,
I need to test a client/server application: I need to run several clients applications with different ip addresses that comunicates with a single server application, but all applications has to run on the same fisical machine. The server application has to see each client with his specific ip. Do you know how I can configure different ip address for each client application , all on the same machine?
Thankyou!!
Alnicolli
Offline
ifconfig lo:1 inet 127.0.0.2 up
1000
Offline
Thankyou for reply
ifconfig lo:1 inet 127.0.0.2 up
Yes, that's my first attempt.
The problem with such solution is that you can bind (with bind() function in C language ) the client socket to 127.0.0.2 and you can send packets without errors, but the resulting source address is always 127.0.0.1. No way to make it change! By the way, I'm using UDP protocol, I don't know if that change something. Anyway, I need each client to send UDP packets with different source IP .... that's the problem..
Alnicolli
Last edited by Alnicolli (2007-12-31 09:12:40)
Offline
Please, does anyone knows how to solve it? :-)
Offline