Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method of obtaining a client address at a server

A server and client technology, applied in electrical components, transmission systems, etc., can solve the problem of unable to obtain the real source IP address of the data packet, and the server cannot obtain the real source IP address of the data packet.

Inactive Publication Date: 2018-12-11
杭州云缔盟科技有限公司
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

That is, the server cannot obtain the real source IP address of the data packet forwarded by the NAT device, that is, the source IP address of the data packet; at the same time, the server application based on the TCP protocol cannot obtain the real source IP address of the data packet forwarded by the NAT device address;

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of obtaining a client address at a server
  • A method of obtaining a client address at a server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0022] see figure 1 , a method for obtaining a client address on a server, comprising the following steps:

[0023] a) The NAT device forwards the message, and adds an option of type TCPOPT_SA in the TCP option of the ACK message that the NAT device establishes a connection with the server, and the option of TCPOPT_SA includes the real IP address and port of the client.

[0024] b) The server implements the WFP-based network monitoring type driver, and the WF...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for obtaining the address of a client end at a server, comprising the following steps: a) a NAT device forwards a message, and an option of TCP type TCPOPT_SA is addedin the TCP option of an ACK message which is connected between the NAT device and the server; b) the server realizes the network monitoring type driver based on WFP, the network monitoring type driver of WFP intercepts the ACK message that establishes the TCP connection, the network monitoring type driver of WFP parses the ACK message and parses the real IP of the client from the ACK message, andthe network monitoring type driver of WFP inserts the real IP information of the client into the hash table; c) the SPI queries the real address of the corresponding socket from the network monitoring type driver of the WFP and returns the real address to the user. The application program running on the Windows server can obtain the real IP address of the client, which provides the possibility ofrealizing the information service function based on the client for the server application running on the Windows platform.

Description

technical field [0001] The invention relates to a method for obtaining a client address on a server. Background technique [0002] When the client accesses the server through the NAT device, the NAT device receives the message from the client and forwards the message to the server. In this process, the NAT device will change the source IP address and port of the message to its own IP address and port, and the remote address obtained by the server application is the IP address of the NAT device. That is, the server cannot obtain the real source IP address of the data packet forwarded by the NAT device, that is, the source IP address of the data packet; at the same time, the server application based on the TCP protocol cannot obtain the real source IP address of the data packet forwarded by the NAT device address; [0003] The present invention mainly solves the problem of how the server application program obtains the real IP address of the client under the scenario of acce...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/12H04L29/06
CPCH04L61/255H04L69/163H04L69/22
Inventor 郑晓峰赵飞周毅李宗宇
Owner 杭州云缔盟科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products