We would like to develop a desktop tool for checking the packet loss between server and client. Tool will be running on client machine. The client has port 4172 TCP and UDP open and can communicate on that port.
Is it possible to identify data transfer in both direction?
Are there any .net api to do this?
I have checked some tools like Pcap.Net and WinPcap
.Net has some Ping classes that make this pretty easy. This guy has some sample code that should get you started: http://forum.codecall.net/topic/37643-c-packet-lossping-program/
Related
I have a C# .NET application listening on a specific port for data (SocketServer).
Using Android, I would like to connect to that SocketServer and send text data to it. I do not know where to get started - sample code would be great.
Take a look at TCP .NET/C# Server with Java client?.
Other than that, you could always recode your server into a REST service, and then anything can communicate with it. But I know this isn't a good answer as I'm sure you don't want to recode the server.
I have been doing research for a few months now on the possibility of client-server communication. I have experimented with many methods such as WebORB and FluorineFX, which are both servers designed to deal with client/server authentication.
WebORB only runs on Windows for their .NET version as far as I can tell, and I would much rather use an open source system. I have tried using FluorineFX, but I think their must be a simpler way for me to build my own simple system from the ground up.
I have been using Dropbox for a while now, and I like the way that the client-server communication is instant. As far as I can tell (from some Google searches) the client doesn't open a port of its own, and just communicates with the Dropbox server through port 80. An example of its instant communication is where you may delete a file on Dropbox on their website, and instantly the server communicates with the client telling it what has happened. I don't know how this instant communication is possible without opening a port.
I can create a system that uses fetching from the client, asking the server every 10 seconds or so to see if there are any updates, but I would like a method to be able to push the information from the server to the client.
My server runs Linux so I don't think I can use WCF, and ideally I am looking for a way to make PHP and C# communicate with each other.
I would love to hear any advice that anyone has and how they deal with the problem.
Cheers.
You CAN use WCF to communicate with any platform. Just make sure you're using an endpoint which your target machine support: http://msdn.microsoft.com/en-us/library/ms733107.aspx
Have you tried the good old .NET Remoting which runs perfectly with Mono?
You can choose between a TcpChannel (for performance) and a HttpChannel (to pass proxy/firewall easily).
For push notifications, you can open a connection to your server and wait for an answer indefinitely.
I want to create an application in Android which communicates with a server application (written in C#, doesn't matter what version of .NET) on the PC via TCP/IP.
What would be the best approach here?
I was thinking about some kind of RPC-like SOAP or XML-RPC. But I want to keep the server application as light and simple as possible. And I think in C# you rely on a Webserver to set up an RPC server. Is it better to communicate directly via the TcpListener?
I had pretty good luck using TCP/IP and UDP with android and windows (Java & C# respectively). I used a more brutal approach then the TCPListener for the C# but pretty similar at the high level. I would recommend giving it a shot and seeing the outcome, chances are it's going to be fairly more lightweight in terms of processing and bandwidth then an XML approach.
What kind of data will your program be sending over the network? If it's something simple why not use a high level protocol like http? I'm more of a java person, but I know that there must be a .net equivalent to running a lean http server to connect to.
I have an application that provides real time log messages for users. Currently the application works by having the server listen on a straight forward TCP socket and the users can use a telnet client to connect. Once connected they get asked for their username, password and can then set a filter for the realtime events they want sent to them.
While no sensitive information is sent over the telnet session the application is getting to a stage where it's increased use warrants tightening up on security.
Ideally the console should be universally accessible from a shell on Windows, Linux and Macs. The only options that came to mind for that are telnet and ssh. As far as I know there's no way to increase security using a standard telnet client so that leaves ssh. Has anyone got any experience with an C# SSH server library or know of a different solution I could use? Is there some clever trick where a WCF endpoint can process ssh clients?
There is a mostly working C# SSH server over at CodePlex that I wrote: NSsh
It currently supports password based authentication. I was looking at extending it to support certificate based authentication but it is a bit tricky under Windows.
I'm new to understanding how interprocess communication works. I"m working with two applications on my localmachine, a Source Application and a Server Application. The Source application broadcasts files through a configured port on my pc. The Server application listens for those files and exposes them to the internet for users to stream.
I want to remove the Server application from the equation and write a new application to communicate with the Source application.
So far I have my application connected to the port and listening. I am able to receive a message from the port. The message i am receiving appears to be metadata, no file. My assumption is the Server Application sends a response once it has picked up this metadata information to obtain the file. Therefore my application needs to mimic the server application. However I have no idea how to respond to the source application's port.
1) Is there a tool I can use to monitor the communication between the Source application and the server application? I believe this would be a tool to watch for tcp messages? All the tools I come across appear to only look for http messages. Would a packet analyzer be of any use?
2) If I can't view the communication between the source and the server application, what else can I do? Is there a tool I can use to broadcast the meta information I"m receiving on a port, then point the server application to that port and receive a response?
Any resources to help me better understand this intercomunication process would be greatly appreciated.
Yes, you can use Wireshark. It can monitor any TCP (and mucn more) communication, including local.
Use Microsoft Network Monitor 3.3, very easy to use.