c# - Spoof IP address for HTTP web request? -


i have web service on server in company have restricted access 1 other server on our network.

i need make calls machine. there way can spoof other servers ip address in order send http request web service? need send info don't need returned data. it's logging hits server on our main server.

i using this

ipendpoint endpointaddress = new ipendpoint(ipaddress.parse(ipaddress), 80); using (socket socket = new socket(endpointaddress.addressfamily, sockettype.stream, protocoltype.tcp)) {     socket.sendtimeout = 500;     socket.connect(endpointaddress);     socket.send(bytegetstring, bytegetstring.length, 0); } 

but exception

a connection attempt failed because connected party did not respond after period of time, or established connection failed because connected host has failed respond 23.202.147.163:80

in general, not possible establish tcp connection server without being able receive , process reply packets server. http built upon tcp, , tcp starts communications "3-way handshake" lets client , server communicate.

the start of http request not single packet.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -