tcp,不知道,帮你up一下,用udp的话,socket的原ip不能吧,但可以调用
DatagramePacket.setAddress(InetAddress address)方法改变发送包吧