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........
+.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.