socket 
Author Message
 socket

hey group
how can i send a tcp-ip message from my computer from port lets say 2222
to a different computer that will receive the message on a different
port e.g. 3333?
thanks

Michael

fax: +49407511010306
icq: 26015247



Tue, 20 Jan 2004 21:22:55 GMT  
 socket

Quote:
>how can i send a tcp-ip message from my computer from port lets say 2222
>to a different computer that will receive the message on a different
>port e.g. 3333?

You can't. That is not how TCP/IP sockets work. Both systems must connect to
the same port.

--
Literary forums; Onyx, a game of {*filter*} exploration; Xero, the industrial
magazine of art, fiction and photography; fine-art photo gallery--all at
http://www.*-*-*.com/



Wed, 21 Jan 2004 00:59:10 GMT  
 socket
so look here. that's the beginning of a text fragment a friend sent to me. it's
part of the tcp-ip traffic he scanned with a scanner-programm.

Observer Packet Capture
Packet 1:  xx:45:xx:54:xx:00 -> xx:xx:52:xx:00:00
    Network:  Ethernet
    Frame type:  802.3,  Frame size:  402
    Time:  19h:21m 26.379sec
IP,    62.96.66.241 -> 205.188.8.121
    Source IP:  xxx.96.66.xxx,  Destination IP:  205.xxx.8.xxx
    Version: 04,    IP header length: 05 (32 bit words)
    Service type:  0:  Precedence: 0, Delay: Norm, Throug: Norm, Reliab: Norm
    Total IP length: 384
    ID: 0749h
    Fragments: No
    Time to live: 128
    PROTOCOL: [6] TCP
    Header checksum: 9AA8 (GOOD)
TCP  PSH ACK,   [1049] -> [5190]
    Source port: [1049]    Destination port: [5190]
    Sequence number: 1463608263,   Acknowledgement: 948983077
    TCP header length: 05 (32 bit words),   Window: 16372
    TCP data length: 344,   Checksum: B6BBh (GOOD)
    Sequence number + TCP data length: 1463608607
Data
    0000  2A 02 1C 79 01 52 00 15  00 02 00 00 00 0E 00 02    *..y.R..........
.....

there are these lines:
TCP  PSH ACK,   [1049] -> [5190]
    Source port: [1049]    Destination port: [5190]
..
so this package must be sent from port 1049 on his computer to port 5190 on a
different one. how does this work? can you help me?

Quote:

> >how can i send a tcp-ip message from my computer from port lets say 2222
> >to a different computer that will receive the message on a different
> >port e.g. 3333?

> You can't. That is not how TCP/IP sockets work. Both systems must connect to
> the same port.

> --
> Literary forums; Onyx, a game of {*filter*} exploration; Xero, the industrial
> magazine of art, fiction and photography; fine-art photo gallery--all at
> http://www.*-*-*.com/



Wed, 21 Jan 2004 18:16:06 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. socket problems under windows: cannot load Socket.so under windows

2. SSL support for socket module for server sockets

3. Q: simple sockets, bind, and socket error 10048

4. NT Tcl socket vs. UNIX Tcl socket

5. Socket Help "Socket Newbie"

6. UDP sockets w/ db-sockets

7. Socket connection fails with socket already connected message

8. TCL and Socket TO Socket

9. old thread: SSL support for socket module for server sockets

10. SOCKET:SOCKET-STREAM missing?

11. VW/Sockets (detecting abnormally closed socket)

12. socket question:socket.error:(4,'Interrupted system call')

 

 
Powered by phpBB® Forum Software