LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp open

 "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?

0 Kudos
Message 1 of 8
(4,530 Views)

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

Message 2 of 8
(4,529 Views)

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)

0 Kudos
Message 3 of 8
(4,520 Views)

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. 

Message Edited by MartonLitkei on 03-03-2009 03:05 PM
0 Kudos
Message 4 of 8
(4,506 Views)

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?

 

 

 

 

0 Kudos
Message 5 of 8
(4,475 Views)

 

0 Kudos
Message 6 of 8
(4,466 Views)

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.

0 Kudos
Message 7 of 8
(4,464 Views)

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

Message 8 of 8
(4,441 Views)