Pieter888
Pieter888

Reputation: 5012

How to simulate an incoming tcp packet?

I've created a simple application that listens to certain incoming TCP messages

I could write a bit of code to send out a TCP message manually, but I was wondering if there was an easier way of sending "fake" incoming TCP messages. I searched around a bit but I didn't find an easy method of doing this.

Upvotes: 0

Views: 478

Answers (1)

Olaf Dietsche
Olaf Dietsche

Reputation: 74118

If your application has a simple text protocol, you can just use telnet localhost port. Otherwise look into netcat

Upvotes: 1

Related Questions