Reputation: 3550
I'm writing a TCP/IP client and I would need a "test server" to be able to test easily. It should listen on a configurable port, show me when a client connects, and what the client sent. It should allow me to manually enter text to send back to the client.
It should work on Windows.
Normally, I would have used the simple but powerful nc.exe (alias "Netcat" available on Unix and on Windows) but the antivirus software detects it as a "hacker tool", so my system administrator doesn't want me to use it at work.
Does anyone use another tool to test socket connections and is happy with it?
Upvotes: 81
Views: 186909
Reputation: 3550
Another tool is tcpmon. This is a java open-source tool to monitor a TCP connection. It's not directly a test server. It is placed in-between a client and a server but allow to see what is going through the "tube" and also to change what is going through.
Upvotes: 2
Reputation: 13680
In situations like this, why not write your own? A simple server app to test connections can be done in a matter of minutes if you know what you're doing, and you can make it respond exactly how you need to, and for specific scenarios.
Upvotes: 2
Reputation: 7819
Hercules is fantastic. It's a fully functioning tcp/udp client/server, amazing for debugging sockets. More details on the web site.
Upvotes: 107
Reputation: 96947
I would go with netcat too , but since you can't use it , here is an alternative : netcat :). You can find netcat implemented in three languages ( python/ruby/perl ) . All you need to do is install the interpreters for the language you choose . Surely , that won't be viewed as a hacking tool .
Here are the links :
Upvotes: 4
Reputation: 51316
netcat
(nc.exe
) is the right tool. I have a feeling that any tool that does what you want it to do will have exactly the same problem with your antivirus software. Just flag this program as "OK" in your antivirus software (how you do this will depend on what type of antivirus software you use).
Of course you will also need to configure your sysadmin to accept that you're not trying to do anything illegal...
Upvotes: 13
Reputation:
Try Wireshark or WebScarab second is better for interpolating data into the exchange (not sure Wireshark even can). Anyway, one of them should be able to help you out.
Upvotes: 6