03-03-2009 12:50 PM
"tcp opening"
i think the address is the IP for remote computer in dot notation. Is it true?
How can I know remote port number?
03-03-2009 01:00 PM
Hi ahmed all...,
normally the port depends on the service you want connect to. Can you explain a bit more about where you try to connect to?
Mike
03-03-2009 01:17 PM
I need to send data type (decimal number) using TCP/IP protocol
i made two vis one send the other recive
now this both vis on my computer
i need to open tcp connection using tcp open coonection in labview but i don't know what i should write in address
part and remote port (listening)
03-03-2009 03:03 PM - edited 03-03-2009 03:05 PM
Dear Ahmed,
On the listener side you only have to give a port number (or service name), thats why it is called a listener 🙂
On the other side (which includes the TCP Open Connection VI) you should write the same portnumber and the computer's IP adress that has the listener VI.
(That IP address could be found in the network properties in windows)
The portnumber is not a very strictly defined thing, you should find a free port and there you go.
If you don't know what ports are free to use then please ask!
Regards,
Marton
NI Hungary
ps.: just realised that your problem might me that you want to use them on the same computer. Than the story with portnumber is the same, but the IP address of the localhost is 127.0.0.1 , so you should try to connect there.
03-04-2009 01:17 PM
dear Marton,
that's good but i don't know how can i know port number (or service name)
how can i get this number?
03-04-2009 06:17 PM


03-04-2009 06:24 PM
Your images don't show because when you embedded them, they were located on your f:\ drive. We don't have access to that drive.
03-05-2009 12:15 AM
Hi ahmed all...,
see the examples for TCP/IP in the example finder. If you build your own TCP/IP client and server, then you can use every port you want, but you have to make sure that there is no other server running with this port number.
Mike