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

  • SEARCH
  • Home
  • 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 7441455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:00:56+00:00 2026-05-29T11:00:56+00:00

There’s already a working server service via socket, and I would like to test

  • 0

There’s already a working server service via socket, and I would like to test it via netcat. I’m using Mac OS X Lion. Currently, I’m able to connect to server via port, to send packet, but the packet contains wrong value. Here are the details:

I need to send ‘m’ symbol to the server and the server will return 00000000, a zero byte as a response. Server guy told me, server receives ‘A0’ when I’m sending ‘m’, and server receives ‘313039A’ when I’m sending ‘109’. How to define sending format or something, I just need to send ‘m’ (01101101)?

  • 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-29T11:00:57+00:00Added an answer on May 29, 2026 at 11:00 am

    You can send just “m” with

    echo -n 'm' | nc <server> <port>
    

    You can easily check what you’re sending on your local machine:

    # in one Terminal start the listener:
    $ nc -l 1234 | hexdump -C
    00000000  6d                                                |m|
    00000001
    
    # in other Terminal send the packet:
    $ echo -n 'm' | nc 127.0.0.1 1234
    

    nc will happily send/receive NUL bytes – there is no problem with that:

    # sending side
    $ echo -n X | tr X '\000' | nc 127.0.0.1 1234
    
    # receiving side
    $ nc -l 1234 | hexdump -C
    00000000  00                                                |.|
    00000001
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are few apps like Strava which records users movements using GPS. It also
There are a few ways to get class-like behavior in javascript, the most common
There are several shading languages available today like GLSL, HLSL, CG, which one to
There's a thrird party app that needs to get information via custom http headers,
There was a smbmrx sample code using RDBSS in WDK Vista. But since WDK
There is a security concept regarding the calls to the WCF service that I
There are many methods to override, like initWithNibname: , awakeFromNib , loadView , viewDidLoad
There is a known issue with using jquery fadeOut, fadeIn, and fadeToggle, when fading
There are things like f.call(...) f.apply(...) But then there's this (1, alert)('Zomg what is
There is a constant I'm using from the iOS SDK. I printed out the

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.