TCP IP question

Hi everyone,
I would like to try a very simple TCP/IP connection.
In other words, I have to IP addresses, two PC and on one of it, I would like to read the temperature captured by the other.
Since it's a large topic, I would appreciate any advice or suggestion on where to find examples.
Thanks in advance
Gérard
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini/Main_Photos.html

Thanks Dan for your reply
Gérard
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini/Main_Photos.html
"dan bookwalter" wrote in message
news:[email protected]..
> Gerard
>
> start by looking at the Simple Data Client.vi and Simple Data
> Server.vi examples that ship with LabVIEW... that should get you
> started...
>
> Dan

Similar Messages

  • Tcp Reset question - IPS Sensor 4255

    I have this sensor doing tcp resets, the question I have is if I add a network to the "never block addresses" will the sensor still send tcp resets even though the network is in the never block? if so how do I tell the sensor to not block certain ip addresses..
    Thanks in advance
    Phil

    You can configure sensors to send TCP reset packets to try to reset a network connection between an attacker host and its intended target host. In some installations when the interface is operating in promiscuous mode, the sensor may not be able to send the TCP reset packets over the same sensing interface on which the attack was detected. In such cases, you can associate the sensing interface with an alternate TCP reset interface and any TCP resets that would otherwise be sent on the sensing interface when it is operating in promiscuous mode, are instead sent out on the associated alternate TCP reset interface.
    http://www.cisco.com/en/US/products/hw/vpndevc/ps4077/products_installation_guide_chapter09186a008055fc77.html

  • TCP( EXAM QUESTION ANYONE PLEASE CHECK IT ).

    Design a TCP server to provide the service exam service on the port 50601 .The server expect to read a message made of N bytes with the following structure:
    Byte 0: length(u8)
    Byte 1:command(u8)
    Byte 2...Byte(N-1): Data Bytes (u8)
    The first byte represent the message length(N).
    The second byte is the command byte.
    The remaining bytes are the data bytes.i.e a sequence of u8 representing codes collected from an 8bits analog to digital converter.
    The server acts as in the following
    1. If the command byte is equal to the hexadecimal code 0xAA the server builds a waveform converting the array of U8 samples (Data byes)to doubles(dbl)and scaling them to represent the voltage levels between 0v and 1 v.Assume for the waveform t0 the current time and dt=1ms .the server plots the samples and save the wavform to the file samples.txt.and  send to the client response DATA SAVED
    2. If the 1st byte is equal to the hexadecimal code 0xBB the server builds a waveform converting the array of u8 samples(DATA BYTES) TO doubles(dbl)and sacling them to represent the voltage level between 0v and 1v.THE SERVER Calculates the maximum and minimm and avarage of teh recieved samples,show the result to the user in the fromt panel.
    3. Every time a successful connection is closed ,the server saves the date,the time,the ip address of the remote client and the recieved byte(on a file entitled server log text)
    4.any error ,the server jst replies the message ERROR OR MALFORMED REQUEST  and drops the connection.

    balbal207 wrote:
    Design a TCP server to provide the service exam service on the port 50601 .The server expect to read a message made of N bytes with the following structure:
    Byte 0: length(u8)
    Byte 1:command(u8)
    Byte 2...Byte(N-1): Data Bytes (u8)
    The first byte represent the message length(N).
    The second byte is the command byte.
    The remaining bytes are the data bytes.i.e a sequence of u8 representing codes collected from an 8bits analog to digital converter.
    Your code has very little resemblance to the stated requirements:
    You are only reading one set of data, then spin the loop forever doing the same thing over and over until stop is pressed. almost everything belongs inside the while loop!
    You are not even looking at the first receive byte (the lenght!). You need that to decide how much more to read. You need to look at what the read returns, not the size (1) you wire into the read! That's just silly!
    How many times do you need to calculate 1/255? Are you expecting different results every time?
    What's up with all the coercions and type mismatches?
    Why do you wire the net address? What IP is 193.205.4.11?
    Do some LabVIEW tutorials. Learn about dataflow and programming basics. Look at the TCP examples that ship with LabVIEW!

  • TCP Reset Question

    I have a query on TCP/IP communication. Let's say I have a cisco device running with http server disabled. If I send a TCP syn packet to the device with destination port 80/443(any non-listening port), will the device respond with TCP RESET? Or will it simply drop the packet without any acknowledgement?

    I think this will be different from device to device:
    ASA will drop denied connection to services it does not run, to make it send resets use the command "service resetoutside" to send reset to a denied TCP packet to outside interface.
    Access Points will by default reset
    Routers  will by default reset
    Switches will by default reset
    Regards,
    PS. Please rate and mark as right

  • ACE: design/config question: trans.slb + slb + mngt

    Hi,
    Could this ACE setup/design work?
    I want PROXIED sessions (to VIP proxy 10.0.0.10) to be loadbalanced
    All other sessions (eg. Some public ip's) will have to transparent loadbalanced to proxy servers. Thus not destinations NAT
    ACE is inline between firewalls and proxy servers.
    Vip definitions:
    class-map match-all P_PXYVIP_VS_LB
    2 match virtual-address 10.0.0.10 255.255.255.255 tcp 8080
    class-map match-all P_PXYTRANS_VS_LB
    2 match virtual-address 0.0.0.0 0.0.0.0 tcp any
    Question in this case: would it still be possible to have management sessions towards proxy servers routed by the ACE ? (physical ip addresses of proxy)
    Probably the classmap PXYTRANS is catching those sessies also.
    Are there other design/config solutions to solve this one?
    Thank you!
    Wim

    Let me repose the question:
    How could one still be able to access the realserver IP (which is directly connected
    to the ACE) for manangement.
    Knowing that there is 1 VIP which (normal) loadbalance to the realservers
    and
    there is 1 VIP 0.0.0.0 tcp any which is configure to catch all other traffic to be
    transparant loadbalanced.
    The VIP 0.0.0.0 is always catching the sessions which need only to be routed
    to the real servers ip.

  • Ports Required for SCCM 2012 Distribution point

    I think below are the port need to open for distribution point instalaltion
    Site Server -- > Distribution Point
    SMB 445 TCP
    RPC Endpoint Mapper 135 UDP and TCP
    RPC dynamic TCP
    my question here is for install Distribution point instalaltion , only
    Site Server -- > Distribution Point one way port open  is enough? or do we need to open both ways?

    One way is enough for a standard Distribution Point. All distribution is initiated by your Primary site server by the Package Transfer Manager.
    Regards,
    Nickolaj Andersen | www.scconfigmgr.com | @Nickolaja

  • Question about ACE show Conn command (tcp duration)

    Hello,
    I was checking connections and noticed that I would see the initial connection, but after a short time the connection quits showing up in the counters and the “show conn” command. However the user is still up and working.
    This is the command I used:
    sho conn serverfarm STAGING-HTTPS detail
    The output shows all the connection info from source to destination, and in the ESTABLISHED state.
    However, after maybe 2~3 minutes, when I up arrow I don't see any connection info. The web page is still up. If I refresh the web page, I do see the connections come in.
    Can someone kindly point me to a document or provide an answer on how long should the connection be stored before they are flushed?
    Config profile:
    4 real servers
    HTTPS protocol
    Leastconn for predictor
    sticky based on src/dst IP
    Thanks,
    Raman

    Raman,
    If you would play with a sniffer capture, you could answer the question yourself.
    If the browser loads a flash object or a java applet, once it is loaded, you can still work on the page but there is no data transfer.
    with a sniffer tool you could see the browser closing the connections.
    The default TCP idle timeout on ACE is 1 hour.
    Gilles.

  • TCP1323Opts question - TCP Timestamps

    Hi,
    We have to be PCI-DSS compliant and have several Windows servers running ISA and TMG.
    We have:
    Win 2K with ISA 2000 (on it's way out)
    Win 2K3 with ISA 2006
    Win 2K8 R2 with TMG 2010
    All of these servers, in the registry have TCP1323Opts set to '0' as per
    http://technet.microsoft.com/en-us/library/cc938205.aspx to disable TCP Timestamps.
    This is confirmed using Netsh where RFC 1323 Timestamps : disabled
    However, for PCI-DSS compliance we have to run vulnerability scans.
    Although only informational, all these servers come back as giving Timestamp replies.
    Although vulnerabilities due to this are minimal, from the timestamp is can be calculated how long a server has been running and therefore you can work out if it is missing the latest patches due to a lack of a reboot.
    I'm mainly puzzled as to why this is showing up when it is meant to be disabled.
    I've searched high and low across the Internet and can't find anything apart from the instructions as to how to change that reg entry.
    Do I need to do anything extra for the driver or something?
    Any help appreciated,
    Adrian

    Hi,
    Thanks for the post.
    Please check if you add the Tcp1323Opts registry key as follows:
    Tcp1323Opts
    Key: Tcpip\Parameters
    Value Type: REG_DWORD—number (flags)
    Valid Range: 0 or 2
    0 (disable the use of the TCP timestamps option)
    2 (enable the use of the TCP timestamps option)
    Default: No value.
    Description:
    This value controls the use of the RFC 1323 TCP Timestamp option. The default behavior of the TCP/IP stack is to not use the Timestamp options when initiating TCP connections, but use them if the TCP peer that is initiating
    communication includes them in their synchronize (SYN) segment.
    For more information about TCP/IP Registry Values, you could access this link:
    http://download.microsoft.com/download/c/2/6/c26893a6-46c7-4b5c-b287-830216597340/tcpip_reg.doc
    Hope this helps.
    Miles
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • TCP intercept..question

    HI ALL.
    TCP intercept is feature which used to prevent from Syn flood attack on router.  is the router will not under attack.if too many proxy connection will be handel by router
    PLEASE REPLY

    Hi mate,
    Please, clarify your question.
    A little bit of TCP iontercept as follows: *this is some notes from my studies)
    TCP intercept
       % Prevents TCP SYN flood attacks (TCP 3 way handshake not completed)
          .SYN, ACK SYN, ACK
       % Results in half open or embryonic session
    - TCP intercept tries to prevent this in TWO ways
       %Intercept mode (proxy for all connections / only connect to server after 3 way hand completes)
       %WATCH mode (passively monitor session establishment / Send TCP RST  if 3 way handshake does not complete in time)   >> The best choice <<
    Waiting to hear from you.
    PLease, rate useful posts !
    cheers

  • Master and tcp/ip newbie questions?

    Hi folks,
    Just a little questions about replication and tcp/ip capabilities of Berkeley DB.
    Is it possible that the master database is not on the same computer that the computer running the app?
    Is it possible there in no database on the computer that run the app, only on "servers"?
    Thanks in advance for all answer
    PS: Sorry for my bad english

    For example,
    Socket.setSoTimeout() sets SO_TIMEOUT option and I
    want to what TCP parameter this option corresponds in
    the underlying TCP connection.This doesn't correspond to anything in the connection, it is an attribute of the API.
    The same questions
    arises fro other options from SocketOptions class.setTcpNoDelay() controls the Nagle algorithm. set{Send,Receive}BufferSize() controls the local socket buffers.
    Most of this is quite adequately described in the javadoc actually.

  • Established tcp connection of question

    Now we have two Master LDAP server, A and B. Both of them have Replication function on.
    I have encountered a problem. There are always a lot of Established tcp connection between them. Once they established this kind of tcp connection, it will never be closed and keep on increasing the connection number. This will lead LDAP A daemon become a zombie daemon so that it cannot supply the LDAP service. At this time, server A usually has a very high load. After rebooting server B, we use the following command to test server A. It turns out that the connection between this two server is still established and never be closed.
    Restart Sever A ldap daemon can temporarily solve this problem. But it will repeat the above situation about one week later.
    We feel very frustrated about this problem. My question is how to close this kind of tcp connection or do you have any resolution about our problem.
    Thank you.
    bash-2.05# netstat -an|grep 192.168.1.92
    192.168.1.91.389 192.168.1.92.61206 49680 0 49680 0 ESTABLISHED
    192.168.1.91.389 192.168.1.92.61207 49680 0 49680 0 ESTABLISHED
    192.168.1.91.389 192.168.1.92.61212 49680 0 49680 0 ESTABLISHED
    bash-2.05# netstat -an|grep 192.168.1.92|wc -l
    1667

    You may want to send this info directly to Apple at http://www.apple.com/feedback/iphone.html as in here, we are just users so really cannot offer any help to how the iPhone is coded to work.

  • WAAS wccp tcp-promiscuous service-pair configuration question

    I have a WAE 512 that I upgraded to 4.5.1, the WCCP configuration was automatically changed in the configuration to the following:
    wccp router-list 1 192.168.20.1
    wccp tcp-promiscuous service-pair 61 62 failure-detection 30
    wccp tcp-promiscuous service-pair 61 62 router-list-num 1
    wccp version 2
    I have a WAVE-674 that I am going to replace this 512 with and I installed 5.0.1 on the 674.  I went through the automatic setup process and the wccp configuration came up like this:
    wccp router-list 7 192.168.20.1
    wccp tcp-promiscuous service-pair 1 2
    router-list-num 7
    exit
    And it informed me that I needed to put the wccp redirects for 61 in on LAN and 62 in on WAN, standard on the router and wccp 2, which I already have done.
    My question is, should my 5.0.1 configuration look the same as my 4.5.1 configuration, or does it matter?  I only found one document on the internet that had this "wccp tcp-promiscuous service-pair 1 2" in a Cisco PDF document where they were removing it to put some GRE specific configurations. 

    hi Beau,
    something went wrong with the new WAVE 674 wccp configuration,  if the wccp router is the same (192.168.20.1) make sure it looks the same as in 4.5.1 version.
    Also for devices with WAAS version 5.0, you must explicitly configure the egress method.
    http://www.cisco.com/en/US/docs/app_ntwk_services/waas/waas/v501/configuration/guide/traffic.html#wp1275623
    if you need assistance choosing the right egress method I suggest to open a TAC case.
    hope that helps!

  • TCP/UDP Port Utilization question for CCX 8.5

    Greetings,
    I have gone through the CCX 8.5 TCP/UDP port utilization guide.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_5/configuration/guide/uccx851pug.pdf
    I always do this as a matter of practice and I had a question concerning Java RMI ports. In the guide there is an ephemeral range TCP:32768-61000 that is used for Java RMI. Based on the context clues in the footnote this is an intra-cluster communication between processes running on CCX. This jives with ACLs I have built for previous versions.
    The hang up I have is that Table 1 (page 6) of the guide shows that one of the remote devices is "Editor". I take this to mean CRS Editor, which can run on a desktop in the environment. I want to keep the ACL as trim as possible, so I don't want to open up the TCP ephemeral range unnecessarily. So, I guess my question is:
    When that document refers to "Editor" do they mean that the CRS Editor is communicating using the referenced ports? Or is there a server-side process called Editor listening on those ports. The shift in how I apparently have to account for RMI is causing me to question.
    Thanks in advance,
    Bill

    I followed the port guide, but am still having issues connecting to the editor from my workstation with my access-list in place.
    When I remove the ACL the editor connects and I can do reactive debugging. The ACL breaks this.
    Followed this
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_9_02/configuration/guide/UCCX_BK_P89325D5_00_port-utilization-guide-uccx-902.pdf
    Does anyone have a sample acl that works?

  • TCP/IP Com Basic Question

    I have never been successful in using the TCP/IP functions to open a session to even so much as get content from a website.
    Does anyone have an example. I think I am missing some very key elements, and the examples database isn't much help.
    In answering, please keep in mind that I have NEVER done anything with TCP/IP. Datasocket is not what I am looking for, because I want to do things more detailed, such as port scanning and listening, etc.
    Thank you,

    Probably the AppNote 160 ("Using LabVIEW with TCP/IP and UDP" [http://zone.ni.com/devzone/conceptd.nsf/webmain/BA7F1D7CE009BE7686256A5B004F335D?OpenDocument]) will be a good companion for tcpex.llb (in lv\examples\comm\ folder).
    Generally, is something like this ...
    - a TCP communication is between two IP addresses, each one of them having a port assigned for a specific connection (you can do it on the same machine, using as address "localhost" or "127.0.0.1" and two DIFFERENT ports). Try to use port numbers greater then 1024
    - the one playing the server role has to LISTEN on a port in order to detect possible incoming communication requests
    - the other one (the client) has to CONNECT to server's address and port
    - after the communication is estab
    lished, each one can send characters to the other (here you should have your own protocol implemented or a standard one (depends what you are trying to do) like HTTP, FTP ... it's something like a little language (for example, if you want to post some data on a web server, you will send a string like "POST something"))
    - both client and server can CLOSE the communication at any time
    Hope this helps somehow ...

  • Question regarding functional​ity of "Sear​ch 1D Array Function&q​uot; in TCP/IP context

    In the attached tcp_Registry.vi, the vi uses the "Search 1D Array Function".  I can't figure out why this function can't find the index of the input element, since the inputs to the function match...
    Solved!
    Go to Solution.
    Attachments:
    tcpInstrument.llb ‏238 KB
    tcp_registry_error_2Jun09.zip ‏435 KB

    I was a bit surprised this morning by the fact that the Initialize vi worked, so I decided, "What the heck?" I'll try the "LCLSA Wave Save To File.vi" again, as I haven't been able to get this one working without errors for the past few months.  And, magically, it worked!  I didn't believe it, so I ran it again - and it worked again!  I still didn't think this was true, so I ran a slightly modified vi I made, "LCLSA Wave Save To File_looped.vi", which just repeats the vi for multiple iterations to create multiple data files.  And this worked, too!  I have NO idea why today everything seems to be fine - I've seriously had issues with the stuff for at least 3 months.  However, I'm just going to go with the flow and see if I can now implement this stuff in my own application now and will let you know how that goes.
    A quick question - do you have any suggestions as to how to view the data files properly?  I believe they come out as binary, but look like mumbo-jumbo when viewed in a text editor like WordPad.  Thanks!
    Attachments:
    3Jun09 Files.zip ‏2 KB

Maybe you are looking for

  • Checkbox in a report

    Hi, #1. I have a SQL report with a checkbox . The page has a LOV and based on the selected value, the records show up in the SQL report.  If I "check" one or more rows in the report and click Save button, new rows get created in a table against LOV s

  • Got stuck with basic of I18N

    Hi , I am using properties-files approach ie for each language one properties-file. BUT I am having this problem : I have ResourseBundle's base-name as "Message" and so 2 properties files: 1.Message_en_US.properties YES=Yes NO=No 2.Message_ja_JP.prop

  • How to stop a rman backup in progress?

    OS: AIX 5.3 L and Oracle 10g R2 I got panic when my scheduled rman backup (incremental level 0 plus archivelog) run too long and I want to stop the process. I could not find the rman doc mentioning how to use any rman command to do that, instead of j

  • Aperture 3.3.1 stuck on loading assets

    Trying to import photos to Aperture 3.3.1 on iMac.  It just sticks on 'Loading Assets" and after a few seconds, it shows TWO SD cards in the Import field! Neither loads any photos to Aperture.  Up till to today, the same equipement has allowed me to

  • Unable to "print" using Adobe PDF ... spooler issue?

    Hello, I get the following message when trying to create a PDF file from any of my programs. I've got Vista OS. "Invalid Adobe PDF printer properties. Do not change spooler settings. Please select "Print directly to the printer" option (from Adobe PD