Anonymous Communication Client-Server

I need some urgent help....

What socket should i use and how can i change the sender's ip address?

I need this for my graduation thesis practical part, for a client who can send packets to a server and viceversa, without awearness of the server where from the packets arrive (if they addr is not specified in the message body).

Something like:

socket.getLocalAddress().fromString("192.168.1.1");

or any solution in java to bind to a non-local addr

if someone knows a solution and cannot made it public i leave my e-mail, i have no other reasons(comercial or malicious) to use this than to finish this for my graduation paper.

many thanks,

Darius_II

P.S: if someone has also a short version in C of it i might be interested also.

darius_ll@yahoo.com

Message was edited by:

Darius_II

[891 byte] By [Darius_IIa] at [2007-11-27 8:58:02]
# 1

> What socket should i use

Socket or ServerSocket or DatagramSocket or MulticastSocket, depending on what you're actually doing.

> and how can i change the sender's ip address?

You can't.

> I need this for my graduation thesis practical

> part, for a client who can send packets to a server

> and viceversa, without awearness of the server where

> from the packets arrive (if they addr is not

> specified in the message body).

You can do that with datagrams, as the return address is inside the received DatagramPacket. Somebody has to start, though, which means somebody has to initially know the hostname:port of the peer.

> Something like:

> socket.getLocalAddress().fromString("192.168.1.1");

This makes no sense whatsoever. What exactly are you trying to do?

> or any solution in java to bind to a non-local addr

This statement has no meaning in TCP/IP.

> my graduation paper.

What is your paper actually about? Please describe your problem. And please be much more clear about it.

ejpa at 2007-7-12 21:23:23 > top of Java-index,Core,Core APIs...