LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

determine tcp port number

my project requires me to read the data from one TCP port and process the data then transfer it out from another TCPO port. (using PXIe-8115 which have 2 tcp port). problem is i have no idea how to determine the port number of the TCP port.

 

in what way i can determine the port number of both port?

 

0 Kudos
Message 1 of 16
(5,966 Views)

Well, you have some spec that specifies to use a certain port for your protocol. If you design the protocol you can choose the port.

 

So what is your problem? Try to be more cleear what you actually want to do. Right now it sounds like you are looking for something that only you yourself can know.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 16
(5,945 Views)

i want to see what effect of different type of modulation towards the performance of a certain signal being transmitted through space, ie. free space optical communication link.

 

the thing that i want to do is i want to read date from a tcp port, changing its modulation type and then re-transmit the processed signal through another tcp port.

 

the problem i facing is i don't know which port number should i read from and which port should i retransmit the signal. 

 

 

0 Kudos
Message 3 of 16
(5,933 Views)

it's still as clear as mud. Who produces the data you want to read? Where does it come from? What protocol is used?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 16
(5,918 Views)

the signal is produced by internet lan cable. i intended to transmit internet signal in free space optic environment. 

0 Kudos
Message 5 of 16
(5,875 Views)

here is an example i found online but i couldn't understand it. the instruction says the server need to be run before client. but the port number seems a little bit random to me but it did manage to get some signal. 

 

can i know where the signal come from and how i can determine the correct port number. i know this question mayby sounds basic or even stupid. but i really don't have much knowledge on Labview. any help would be useful. 

Download All
0 Kudos
Message 6 of 16
(5,862 Views)
I don't think your question is related to understanding LabVIEW. if you want to know what ports are currently being used on your pc, use the netstat command. To start with common ports and ports you can use, you might want to start at http://en.m.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers. Some basic understanding of tcp/ip is necessary for your project, if I understand it correctly.
0 Kudos
Message 7 of 16
(5,851 Views)

by using the netstat command, i get the following reading. but the port number is changing everytime. which number should i take as port number?

0 Kudos
Message 8 of 16
(5,847 Views)
You certainly don't want one that's currently being used unless one of them is from the application you are testing. Your statement that the signal is being produced by the Ethernet cable is just plain silly. If you intend to generate traffic, then it will be your application that does the generation with an unused port that you select and will not conflict with ports that are reserved for something else. Just like the examples you posted.
0 Kudos
Message 9 of 16
(5,837 Views)

i really do not understand. say i want to analyse the data flow of the ethernet cable. which port number should i put? to make sure i am not mistaken, the port number is the number beind my ip address right? 

0 Kudos
Message 10 of 16
(5,832 Views)