Hello Sir,
I have a DNS UDP client which has to connect to a external server such as a.root-servers.net at port 53.
The proxy server used is WinGate and ProxyPlus. I am doing the following steps with both wingate and proxy plus
1. Connect to 1080 on localhost via TCP
2. Check Auth mode
3. Auth if necessary
4. send packet with
+----+-----+-------+------+----------+----------+
|VER | CMD | RSV | ATYP | DST.ADDR | DST.PORT |
+----+-----+-------+------+----------+----------+
| 1 | 1 | X'00' | 1 | Variable | 2 |
+----+-----+-------+------+----------+----------+
DST == localhost , 5000 say
[ A UDP server is started at DST ]
5. Recvd a reply from proxy server with ip and port to sent subsequent packets to via UDP
6. sent a udp packet to given ip and port (obtained in step5) conatining the IP and port of external server
+----+------+------+----------+----------+----------+
|RSV | FRAG | ATYP | DST.ADDR | DST.PORT | DATA |
+----+------+------+----------+----------+----------+
| 2 | 1 | 1 | Variable | 2 | Variable |
+----+------+------+----------+----------+----------+
7. Waiting for reply on my UDP server started in step 4
now with wingate i never get a reply back in step 7 , and in proxyplus i get a reply
this is what the log says
02/07/04 03:27:57 127.0.0.1 sr 0000000035 Debug: UDP Associate: received 37 bytes from 127.0.0.1:3442
02/07/04 03:27:57 127.0.0.1 sr 0000000035 Debug: UDP Associate: received 459 bytes from 198.41.0.4:53
02/07/04 03:27:57 127.0.0.1 sr 0000000035 Error: Caught socket exception in CSOCKSSession::OnRead() Connection Reset by Remote Host - terminating
02/07/04 03:27:57 127.0.0.1 sr 0000000035 Traffic 491 50 27 459 24s
Please let me know what i am doing wrong