hi...
Based on the trace packet, I found that my server using port 1998 and the remote server using port 61236.
How could i write the socket program to connect from my port (1998) to remote system on port (61236).
This is sample data trace:
Sent request to remote system
-------------------------------- TCP Header --------------------------
+--------
sport: 1998 --> dport: 61236 flags: PUSH ACK
seq: 0xfd2fed0a urp: 0x0 chksum: 0xe16a data len: 519
ack: 0x2f975faf win: 0x1ed9 optlen: 0
-------------------------------- XOT ---------------------------------
+--------
Remote server acknowlegde
-------------------------------- TCP Header --------------------------
+--------
sport: 61236 --> dport: 1998 flags: PUSH ACK
seq: 0x2f975faf urp: 0x0 chksum: 0x1b data len: 7
ack: 0xfd2fef11 win: 0x8000 optlen: 0
-------------------------------- XOT ---------------------------------
+--------
0: 00 00 00 03 10 01 41 -- -- -- -- -- -- -- -- -- ......A........
+.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|