Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4052764
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:21:39+00:00 2026-05-20T14:21:39+00:00

I am looking for a software to mock a tcp/ip server. What I need

  • 0

I am looking for a software to mock a tcp/ip server. What I need is an easy to use tool (might cost something) which I can use to act as a server and where I can define a protocol flow with some constrains, for example executing the following flow:

  1. Server starts and listens on a tcp/ip port
  2. When a client connects, it send a welcome message
  3. It expects a response message from the client.
  4. The it send a second message etc etc

Is there someone who can give me a hint? I am looking for ready to use software, not a library etc. It might be for Linux or Windows systems.

Thank you very much,

Maciej

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:21:40+00:00Added an answer on May 20, 2026 at 2:21 pm

    A simple solution is to use expect and tcpserver. The later comes with the ucspi-tcp package in Ubuntu and hopefully other debians.

    Example:

    Run this on one console:

    $ tcpserver localhost 3333 expect -c 'expect "hello" ; send "hi\n" ; expect "bye" ; send "see you\n"'
    

    And this on another:

    $ telnet localhost 3333
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    hello
    hi
    bye 
    see you
    Connection closed by foreign host.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a solution\software that I can use in order to render
I'm looking for some software that allows me to control a server based application,
I'm looking for some software to monitor a single server for performance alerts. Preferably
I'm using Windows Xp and i'm looking for a software where I can see
Looking at the cool new principles of software development: Agile You Ain't Gonna Need
I'm looking for a free (FOSS) speech recognition engine that I can use with
I am looking for a software that can reverse engineering a delphi 2010 project
I'm looking for server software and decided on Apache, but I see two different
iam looking for a php/mysql open source inventory management software. Can anyone suggest me
I'm looking for Forum software similar to phpBB, but intended to run within a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.