TCP/IP communication with remote host

Hey guys,I wrote a class for TCP/IP communication with remote host.I am trying to use this class in following way:Its not working.One thing I am not sure about if I can give IP address of the machine while creating a socket.Please take a look at my program and let me know where i am doing wrong.Help me!
CommunicationAgent commAgent;
commAgent= new TCPIPCommAgent();
writer = commAgent.getWriter("CASS");
/* Send GC request message to CASS */
writer.print(searchduedateRequestMsg);
/* Get reader object to read TCP IP response from CASS */
reader = commAgent.getReader("CASS");
/* Read response message */
String respMsg = reader.readLine();
if(respMsg!=null)
System.out.println("Search due date Response from CASS is:" +respMsg);
else
System.out.println("Error in reading search due date response");
and here is my class responsible for TCP/IP communication:
* Created on Jul 15, 2004
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
package com.prtc.commif.framework;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Properties;
import com.prtc.commif.framework.interfaces.CommunicationAgent;
import com.prtc.commif.util.InputResources;
* @author spolireddy
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public class TCPIPCommAgent implements CommunicationAgent
public BufferedReader getReader(String system)
InputResources inputResources = new InputResources();
Properties props=inputResources.getProperties(system + ".properties");
Socket socket=null;
BufferedReader in=null;
//Get this from the properties
String hostName = "113.132.192.21";
//Get this from the properties
int port = 10103;
try
socket = new Socket(hostName, port);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
catch (UnknownHostException e)
System.err.println("Unable to identify the Host: " + hostName + ":" + port);
System.exit(1);
catch (IOException e)
System.err.println("Couldn't get I/O for the connection to: "     + hostName + ":" + port);
System.exit(1);
return in;
public PrintStream getWriter(String system)
InputResources inputResources = new InputResources();
Properties props=inputResources.getProperties(system + ".properties");
Socket socket=null;
PrintStream out=null;
//Get this from the properties file
String hostName = "113.132.192.21";
//Get this from the properties file
int port = 10103;
try
socket = new Socket(hostName, port);
out = new PrintStream(socket.getOutputStream(), true);
catch (UnknownHostException e)
System.err.println("Unable to identify the Host: " + hostName + ":" + port);
System.exit(1);
catch (IOException e)
System.err.println("Couldn't get I/O for the connection to: "     + hostName + ":" + port);
System.exit(1);
return out;

Hi,
Yes, you can specify ip-address as host-address.
What do you expect the class to do? Why does reader and writer both open sockets?
What happens when you run the program?
/Kaj

Similar Messages

  • TCP/IP communication with LabVIEW Full?

    Hi,
    I would like to know if the TCP/IP VIs are included with the Base or Full version of LabVIEW?
    I was looking at the different versions of LV and one of the features of the Pro version is 'Network Communication'.
    I have done TCP/IP communication a while ago and I am quite sure it was with the Full version. I have the Pro version now but this is for a customer.
    This brings another question: Is there a trick to be sure your code is going to work on a system with LV Base if you develop on a system with LV Pro?
    Thanks!

    I think that was a good answer to your first question. To answer your second question, if you are creating executables to be run on a computer with LabVIEW Base there will be no problem running the executable because LabVIEW Base has the run time engine. If you are sending VIs to another computer with LabVIEW Base they will not be able to access any VIs that are not included in there package. There is no simple way to tell that these VIs are not included except through the link in the previous post. In LabVIEW 8.6 many of the help documents state what LabVIEW package installs the VI. If all of the VIs state that they are installed with LabVIEW Base you will have no problems.
    Vince M
    Applications Engineer

  • UDP Send and Receive with Remote Host Only Issue

    I am seeing an issue using the UDP Sender and UDP Receiver example VIs that ship with LabVIEW. If I open the VIs and do not change any of the settings and run the UDP Receiver VI and then the UDP Sender VI the Receiver VI never reads anything. However if I change the boolean on the UDP Sender VI to broadcast it works fine.  
    The example program by default uses localhost so I have also tried to use the UDP Receiver on my Real Time controller and the UDP Sender on my laptop with the boolean set to remote host only and the remote host string set to the ip address of my real time controller and this did not work either. But if I change the boolean to broadcast it works.
    I would like to be able to send to a remote host only and not have to broadcast my UDP message to everyone.
    Please let me know if you have any suggestions.
    Thanks,
    Russell 
    Engineering Team Leader
    G Systems, www.gsystems.com
    Certified LabVIEW Architect
    Certified Professional Instructor

    Elizabeth,
    Thank you for the response. I am using LV 8.2.1 and wasn't seeing any errors. 
    However I am not seeing the issue today, I must have been an issue with our network yesterday.
    Thank you,
    Russell 
    Engineering Team Leader
    G Systems, www.gsystems.com
    Certified LabVIEW Architect
    Certified Professional Instructor

  • Problem with the integration with remote host.

    Hi,
    There are two gateways to which i need to integrate one for sending only one message and another for many. So locally its working fine but when i integrate with the remote host. The gateway2 is working fine but i have a problem in gateway1 where i send only one message. That too in browser its working fine but i am not getting the exact result in that remote systems Tomcat.
    Itz giving me Error 2:load
    Awaiting a reply...

    Hi
    I am facing a problem in integrating means i am not getting the output which i want in the logs.
    But if i copy paste the parameters with url in browser it works fine.
    thanks.

  • Adapter for TCP/IP communication with XI

    Hi Experts,
    The provider of the external system sez he will use TCP/IP communication...
    wat adapter do we have to use in XI?? pls help

    TCP/IP  is a connection oriented network protocol. TCP - Transmission control protocol   IP - internet protocol.
    TCP/IP is a 7 layers model  and the top layer is a application layer where all the applications or services are supported such as file, HTTP, Webservice etc....   PI adapters are application layer services. SO PI can support all the current adapters.
    >>wat adapter do we have to use in XI?? pls help
    Since TCP/IP establishes connectivity between one system to another system using network protocol, PI can use that connection for communication.  You can use any adapter that PI supports. please elaborate your question.
    Link: http://www.tcpipguide.com/free/t_ApplicationLayerLayer7.htm

  • TCP client communicating with UDP server

    Hello,
    I want to make a TCP client to communicate with an UDP server. Does anyone know a way of doing this? I am not interested in reliable data transfer. So I don't care if the datagram is lost. I want to make the UDP server accept some datagrams from the TCP client. Also, the datagram that I want to transmit is less than 65,536 octets so it is not devided to several datagrams. Therefore, only one exchange procedure occurs.
    I made an UDP server using DatagramSocket and DatagramPacket classes and a TCP client using Socket class, but the TCP client informs me that the connection was refused.
    Any ideas?

    Let's google for IP header and the first hit is http://www.networksorcery.com/enp/protocol/ip.htm (Whoa! Classic page! I must have seen that back when googling was called altavista.)
    There is a header field, a single byte, called protocol. For TCP/IP that field contains 6, for UDP/IP it contains 17.
    If you send a packet with protocol=17, the receiving host's kernel will check if it has an process listening to UDP (17) at the port specified in the packet header. No such process? Then simply discard the packet. So you can't send an UDP packet to a TCP socket because the protocol field is wrong.
    If you want to fake a TCP stream you could look into jpcap, which allows you to capture and send raw packets. Google for it; and pick the right jpcap, there are two, only one of which (AFAIK) can send packets. Attempting to write your own TCP implementation is highly advanced though, and not really practical.

  • How to connect a CVS server with remote Hosts(NWDS7.0)

    Hi Frndz..
    I installed CVSNT server in one machine n itz workiing fine with that NWDS in that machine , now i want make connect that CVS server from remote machines NWDS's to use that CVS server as a central repo'
    Can anyone guide me how can i connect that server from remote machines thru NWDS.
    Thnaks in Advance
    Regards
    Rajesh

    rajesh,
    did u check this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d079e754-8c85-2b10-8b9a-b36db5262122
    Thanks
    Bala Duvvuri

  • Tcp/ip communication with LabVIEW

    Does anyone have experience building an application with LabVIEW that
    communicates over a socket? I new to LV, but it appears that the
    application I have in mind is possible. Specifically, the LV
    application would open a socket (port and IP known ahead of time) and
    send a character to that socket. Depending on the character sent, the
    application on the other end (a UNIX process) would send back a one
    integer value to indicate the number of packets to expect. The LV
    application would next need to parse each packet for such things as the
    packet length, data length and so forth and then distribute those data
    to appropriate sub-processes. The header value types are integer,
    double, byte and character. The data values are all 4-
    byte integers.
    The sending code (on the UNIX side) was written in C. The aggregate
    throughput is relatively low; no more than 2,000 bytes per second,
    including packet headers.
    If I can get this to work, the results would represent a significant
    cost savings over competing alternatives. As a federal employee, I'm
    always looking for the most cost effective solutions.
    Thanks.
    -Robert
    Basically, I'm just looking for confirmation that this sort of thing is
    possible with LV. And, I'd like to get a better idea of how hard it
    would be to do.
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Hi everyone,i am currently trying to communicate with two computers at the moment using TCP/IP.I have done a simple server and client VI but the server doesnt seem to be writing the string im trying to send and it also gives an error message
    Error 1 occurred at TCP Write in Server.vi
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    Please find attached the simple server and client VIs i have done.can you help me?
    Thanks
    Osowoaji
    Attachments:
    Server.vi ‏13 KB
    Client.vi ‏13 KB

  • What programming resources exist for doing direct TCP/IP communication with the FP-1600 ethernet interface?

    I am no stranger to IP communications (UDP or TCP), and I am attempting to build a project controlled by a Linux system. The FieldPoint 1600 looks interesting, but I can find no programming manual describing it's use.. only a dumbed-down 'user manual' describing how to use Windoze software. Is there any hard documentation on this device, or should I look elsewhere for my solution?

    Nathaniel,
    The FP-1600's use a National Instruments proprietary communications protocol. At this point in time, there are no plans to release the protocol. On the other hand, the protocol for the FP-1000/1001 serial network modules is published in the FP-1000/1001 Programmers Reference Manual and can be implemented on any platform.
    If you are using LabVIEW, I have recently created a driver for the serial modules, that is multi-platform, that will be included in the next version of FieldPoint Explorer, but I will also be making it available for download independantly of FieldPoint Explorer.
    Regards,
    Aaron

  • Communication With remote server

    Hi,
    I have Plumtree enviroment setup and would like to access service on those machine with my local Desktop computer, would like to create some portlets on my local machine without effecting the environment.
    What should I install on my computer so I can use the existing enviroment configurations.

    Install nothing! That's the beauty of the architecture.
    You can create portlets on your development box which will be known as the "Remote Server" to your portal environment. Your first step is to actually create your portlet, like you would any web page. That means setting up an application server, such as Tomcat, if on Java or just using IIS for .NET.
    After that you can configure the portal to communicate with your own development machine by creating a new Remote Server object from the portal's administrative screens. Then create a new Portlet Web Service to reference your web page. Finally create a new Portlet object to represent your page. Once you have these objects, you can add your portlet to a portal page, view the portal page, and the portal will know to send HTTP requests to your development machine and display the response in the portal page.
    There are of course many details when you get into more interesting functionality. I would encourage you to go through the online documentation starting with "Developing Custom Portlets." http://www.plumtree.com/edoc/Enterprise_Web_Development_Documentation.htm#Integration/Portlets/PlumtreeDevDoc_Integration_Portlets_Intro.htm

  • TCP/IP communication with Matlab

    Since LabVIEW unwisely depends on Microsoft only constructs to communicate with Matlab, has anybody succeeded in piping commands/data from a LabVIEW session running on a Mac / Linux to a Matlab session running on the same machine ? Use of MathScript is not an option since MathScript does not have all the toolboxes and more critically, does not offer a programmatic way of saving plots (the print command).

    Yes, Microsoft has provided COM tools for the MAC OS. This article provides a brief overview.
    Also, LabVIEW has a number of tools for configuring and programmtically printing and saving plots. I do not believe it appropriate to discuss notions of platform superiority. I simply would like you and future forum readers to be aware of the tools available in LabVIEW for plotting tasks:
    Customizing Graphs and Charts
    http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/customizing_graphs_and_charts/
    In addition, there are a number of image tools available:
    NI LabVIEW Modules and Toolkits for Image and Signal Processing
    http://www.ni.com/labview/family/image_signal_processing.htm
    Cheers, 
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • Inter cluster trunk/ ip to ip communication with remote office without ccm

    dear sir,
    We've both ipipgateway configured to communicate with each other. Attachment pngipipgw1 is our local voice router with destination pattern 3XXXX that need to link with other country Japan with destination pattern 7xxxx . All other country locations is ok except the japan which are using non cisco callmanager to link to our local site with cisco call manager 4.1(3) with destination pattern 3XXXX.
    Q1.) Based on the ipipgateway configurations of both parties, please advise any finding/thoughts?
    Q2.)At our local site, We have nm-hdv with 2 pvdm simm that configured as dspfarm transcoder. Is it enough to have only 2 pvdm simm out of 5 in the nm-hdv? If we add in new pvdm, do we need any configuration at the voice gateway or we just plug in the hardware?
    please advise. thank you very much.
    -regards-

    Hello chialun
    Regarding
    Q1. Could you explain a little more about what is the problem you have with the calls between those two sites? Please share which number on one side is calling which other number on the other side and what happens with the call.
    Q2. It depends on how are you using your Xcoder resources. If some of your conferences or calls are being terminated because you are running out of resources, it will be advisable to add some more pvdm2 to your router. Also after adding the hardware, you would like to change the configuration to increas the maximum number of transcoding sessions.
    Regards
    Xabier

  • My  MacBook is not communicating with my desk top to enable printing from my MacBook. I need to find out how to make that happen. I have a static IP address on my desktop but don't know what to do on the Mac Book.

    My MacBook is not connecting to the host computer for the printer. The host computer has a static IP address which is different from the IP address that the laptop is looking for. How do I change the laptop so that it looks for the host computer's correct IP? The laptop is connected to the router. I know this because I can get on the internet with the laptop.

    The host computer is Dell and the operating system is Windows 7.  The printer is an Epson, and it is wired to the host computer with a USB cable. It does have host printing turned on.
    The three have been working harmoniously for a long time.  The router had to be reset; and after that, the MacBook documents would no longer print.
    We created a new static IP address on the Dell but the MacBook is not recognizing it.  We have researched the internet trying to figure out how to make the MacBook locate and recognize the correct IP address from the Dell so they can communicate with each other.  The laptop is not communicating with the host computer because is is looking for the wrong IP.  The host IP is 192.168.1.245 and the laptop is looking for 192.168.15.237.
    I hope everything is clear.  The person who originally set it up is no longer available to help me.  Thank you for any help you may give me.

  • MBAM 2.5 - How does it deal with remote devices?

    Hello,
    My organization is currently looking to migrate towards using MBAM from McAfee's Endpoint Encryption product. Our environment may be a little different from a lot of other companies though.
    I've watched a few installation guides (including the newest from TechEd this year) and still have a couple of questions for deployment for our organization.
    The computers that will be encrypted, they will be set up internally on our network and then shipped out of our network perimeter. This means that communication needs to take place over the internet. Does the MBAM server support open web communication with
    remote devices over the web (assuming over port 443 or designated port)? 
    Secondly, if we need to restrict access to a computer remotely (as in disable a user) does MBAM automatically take care of this for us, or will we need a open facing domain controller that can be hit from the web as well?

    Hello,
    My organization is currently looking to migrate towards using MBAM from McAfee's Endpoint Encryption product. Our environment may be a little different from a lot of other companies though.
    I've watched a few installation guides (including the newest from TechEd this year) and still have a couple of questions for deployment for our organization.
    The computers that will be encrypted, they will be set up internally on our network and then shipped out of our network perimeter. This means that communication needs to take place over the internet. Does the MBAM server support open web communication with
    remote devices over the web (assuming over port 443 or designated port)? 
    Secondly, if we need to restrict access to a computer remotely (as in disable a user) does MBAM automatically take care of this for us, or will we need a open facing domain controller that can be hit from the web as well?
    First, MBAM clients requires access to the MBAM service to update compliance status as well as store new recovery keys (if one is used). Other than that it is fine to use the PC outside of the corp network without access.
    Secondly, MBAM doesn't help you to disable a user on a local machine. It doesn't manage users at all. Perhaps I missunderstand you.
    Tim Nilimaa | Blog: http://infoworks.tv | Twitter: @timnilimaa

  • Event ID: 5014, 5004 The DFS Replication Service is stopping communication with partner / Error 1726 (The remote procedure call failed.)

    I'm replicating between two servers in two sites (Server A - Server 2012 R2 STD, Server B - Server 2008 R2) over a VPN (Sonicwall Firewall).  Though the initial replication seems to be
    happening it is very slow (the folder in question is less than 3GB).  I'm seeing these in the event viewer every few minutes:
    The DFS Replication service is stopping communication with partner PPIFTC for replication group FTC due to an error. The service will retry the connection periodically.
    Additional Information:
    Error: 1726 (The remote procedure call failed.)
    and then....
    The DFS Replication service successfully established an inbound connection with partner PPIFTC for replication group FTC.
    Here are all my troubleshooting steps (keep in mind that our VPN is going through a SonicWall <--I increased the TCP timeout to 24 hours):
    -Increased TCP Timeout to 24 hours 
    -Added the following values on both sending and receiving members and rebooted server
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    Value =DisableTaskOffload
    Type = DWORD
    Data = 1
    Value =EnableTCPChimney
    Type = DWORD
    Data = 0
    Value =EnableTCPA
    Type = DWORD
    Data = 0
    Value =EnableRSS
    Type = DWORD
    Data = 0
    ---------------------------------more troubleshooting--------------------------
    -Disabled AntiVirus on both members
    -Made sure DFSR TCP ports 135 & 5722 are open
    -Installed all hotfixes for 2008 R2 (http://support.microsoft.com/kb/968429) and rebooted
    -Ran NETSTAT –ANOBP TCP and the DFS executable results are listed below:
    Sending Member:
    [DFSRs.exe]
      TCP    10.x.x.x:53            0.0.0.0:0             
    LISTENING       1692
    [DFSRs.exe]
      TCP    10.x.x.x:54669        
    10.x.x.x:5722          TIME_WAIT       0
      TCP    10.x.x.x:54673        
    10.x.x.x:5722          ESTABLISHED     1656
     [DFSRs.exe]
      TCP    10.x.x.x:64773        
    10.x.x.x:389           ESTABLISHED     1692
    [DFSRs.exe]
      TCP    10.x.x.x:64787        
    10.x.x.x:389           ESTABLISHED     1656
     [DFSRs.exe]
      TCP    10.x.x.x:64795        
    10.x.x.x:389           ESTABLISHED     2104
    Receiving Member:
    [DFSRs.exe]
      TCP    10.x.x.x:56683        
    10.x.x.x:389           ESTABLISHED     7472
     [DFSRs.exe]
      TCP    10.x.x.x:57625        
    10.x.x.x:54886         ESTABLISHED     2808
    [DFSRs.exe]
      TCP    10.x.x.x:61759        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61760        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61763        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61764        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61770        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61771        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61774        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61775        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61776        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61777        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61778        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61779        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61784        
    10.x.x.x:52757         ESTABLISHED     7472
    [DFSRs.exe]
      TCP    10.x.x.x:63661        
    10.x.x.x:63781         ESTABLISHED     4880
    ------------------------------more troubleshooting--------------------------
    -Increased Staging to 32GB
    -Opened the ADSIedit.msc console to verify the "Authenticated Users" is set with the default READ permission on the following object:
    a. The computer object of the DFS server
    b. The DFSR-LocalSettings object under the DFS server computer object
    -Ran
    ping <var>10.x.x.x</var> -f -l 1472 and got replies back from both servers
    -AD replication is successful on all partners
    -Nslookup is working so DNS is working
    -Updated NIC drivers on both servers
    - I ran the following to set the Primary Member:
    dfsradmin Membership Set /RGName:<replication group name> /RFName:<replicated folder name> /MemName:<primary member> /IsPrimary:True
    Then Dfsrdiag Pollad /Member:<member name>
    I'm seeing these errors in the dfsr logs:
    20141014 19:28:17.746 9116 SRTR   957 [WARN] SERVER_EstablishSession Failed to establish a replicated folder session. connId:{45C8C309-4EDD-459A-A0BB-4C5FACD97D44} csId:{7AC7917F-F96F-411B-A4D8-6BB303B3C813}
    Error:
    + [Error:9051(0x235b) UpstreamTransport::EstablishSession upstreamtransport.cpp:808 9116 C The content set is not ready]
    + [Error:9051(0x235b) OutConnection::EstablishSession outconnection.cpp:532 9116 C The content set is not ready]
    + [Error:9051(0x235b) OutConnection::EstablishSession outconnection.cpp:471 9116 C The content set is not ready]
    ---------------------------------------more troubleshooting-----------------------------
    I've done a lot of research on the Internet and most of it is pointing to the same stuff I've tried.  Does anyone have any other suggestions?  Maybe I need to look somewhere
    else on the server side or firewall side? 
    I tried replicating from a 2012 R2 server to another 2012 server and am getting the same events in the event log so maybe it's not a server issue. 
    Some other things I'm wondering:
    -Could it be the speed of the NICs?  Server A is a 2012 Server that has Hyper-V installed.  NIC teaming was initially setup and since Hyper-V is installed the NIC is a "vEthernet
    (Microsoft Network Adapter Multiplexor Driver Virtual Switch) running at a speed of 10.0Gbps whereas Server B is running a single NIC at 1.0Gbps
    -Could occasional ping timeout's cause the issue?  From time to time I get a timeout but it's not as often as the events I'm seeing.  I'm getting 53ms pings.  The folder
    is only 3 GB so it shouldn't take that long to replicate but it's been days.  The schedule I have set for replication is mostly all day except for our backup times which start at 11pm-5am.  Throughout the rest of the time I have it set anywhere from
    4Mbps to 64 Kbps.  Server A is on a 5mb circuit and Server B is on a 10mb circuit. 

    I'm seeing the same errors, all servers are running 2008 R2 x64. Across multiple sites, VPN is steady and reliably.
    185 events from 12:28:21 to 12:49:25
    Events are for all five servers (one per office, five total offices, no two in the same city, across three states).
    Events are not limited to one replication group. I have quite a few replication groups, so I don't know for sure but I'm running under the reasonable assumption that none are spared.
    Reminder from original post (and also, yes, same for me), the error is: Error: 1726 (The remote procedure call failed.)
    Some way to figure out what code triggers an Event ID 5014, and what code therein specifies an Error 1726, would extremely helpful. Trying random command line/registry changes on live servers is exceptionally unappealing.
    Side note, 1726 is referenced here:
    https://support.microsoft.com/kb/976442?wa=wsignin1.0
    But it says, "This RPC connection problem may be caused by an unstable WAN connection." I don't believe this is the case for my system.
    It also says...
    For most RPC connection problems, the DFS Replication service will try to obtain the files again without logging a warning or an error in the DFS Replication log. You can capture the network trace to determine whether the cause of the problem is at the network
    layer. To examine the TCP ports that the DFS Replication service is using on replication partners, run the following command in a
    Command Prompt window:
    NETSTAT –ANOBP TCP
    This returns all open TCP connections. The connections in question are "DFSRs.exe", which the command won't let you filter for.
    Instead, I used the NETSTAT command as advertised, dumping output to info.txt:
    NETSTAT -ANOBP TCP >> X:\info.txt
    Then I opened Excel and manually opened the .TXT for the open wizard. I chose fixed-width fields based on the first row for each result, and then added a column:
    =IF(A3="Can not", "Can not obtain ownership information", IF(LEFT(A3,1) = "[", A3&B3&C3, ""))
    Dragging this down through the entire file let me see that row (Row F) as the file name. Some anomalies were present but none impacted DFSrs.exe results.
    Finally, you can sort/filter (I sorted because I like being able to see everything, should I choose to) to get just the results you need, with the partial rows removed from the result set, or bumped to the end.
    My server had 125 connections open.
    That is a staggering number of connections to review, and I feel like I'm looking for a needle in a haystack.
    I'll see if I can find anything useful out, but a better solution would be most wonderful.

Maybe you are looking for

  • Send Email in HTML Format with Javamail.

    GOD BE BLESSED! Hello dudes, i create a jsp page let me send emails from a database using the API Javamail. But these emails when i send then, goes in text format only, and i want to send emails in HTML format too. Anyone can help me? I think the Jav

  • Setting PYTHONPATH in 10.7.2

    Hey, I just decided to start working on learning a programming language and have decided to start with Python.  I have the most current version but am running into issues when trying to import modules that I have downloaded from the internet.  I beli

  • 25bw IPS monitor

    Never again will I buy a HP monitor. 2 1/2 months after the warranty expires, a red line appears on the right side of the screen going straight down. Called up the tech support and they try to sell me the same one for "a reasonable price". Why would

  • Working photographer needs help with hard drives and raid O decisions

    Hi new here and also new to Mac well almost new been 20 years since i had a mac. i have a Mac Pro Book and this led to ordering the MacPro since I am a working photographer i made a complete switch in platforms so i have some questions and such but I

  • O teclado nao se ilumina para por a palavra passe ao iniciar o mac

    O teclado não se ilumina  ao iniciar O computador, onde aparece para pôr palavra passe ou para entrar No mac. Está um bocado mais lento aparecendo problemas de ecrã desfigurado.