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 459351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:45:50+00:00 2026-05-12T22:45:50+00:00

What are the effects of incorrectly setting the netmask? I have a C++ application

  • 0

What are the effects of incorrectly setting the netmask? I have a C++ application that sets the network mask of a device. If the netmask is set incorrectly, tftp doesn’t seem to work properly. Why would this happen? What other problems occur when the netmask is not properly set for a device/PC?

  • 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-12T22:45:50+00:00Added an answer on May 12, 2026 at 10:45 pm

    While this question is probably more about IP networks than programming it is a challenging subject for many developers.

    The netmask delimits the host address (your PC or server) and the network address (the part of the logical network infrastructure in which your system lives). The two parts are used to deliver the data packet to the correct device. The network address is obtained by ANDing the netmask with the IP Address. Consider the following scenario:

    IP Address: 10.0.1.1
    Netmask: 255.255.0.0
    

    The host address portion of the IP address for our PC is 1.1, so the PC knows that any host addresses starting 10.0. are local to it. Any addresses that then start 10.1, etc, are not ‘local’ and will need to be forwarded to a router. If you have another device intended to be on the same network that is:

    IP Address: 10.0.2.1
    Netmask: 255.255.255.0
    

    Here the netmask is wrong for our example setup, this device is now going to see the network address as 10.0.2 and the host address as 1, if it tries to communicate with 10.0.1.1 it will see a network address of 10.0.1! Not local and so will refer it to the default router for forwarding. If the netmask was correctly set (i.e. the same as the first example, assuming that’s the correct setting for your network) then the second device would see the first as local, i.e. on the 10.0 network and wouldn’t attempt to forward the packet to a router.

    Many protocols will happily cope with this but tftp is intended to operate within a single network and so will fail as there’s a perception that the target is on a different network.

    This may not describe your exact situation but I hope that the example demonstrates the important principle that configuration matters, you can’t have an inaccurately configured environment and expect it to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We all know the effects that lots of thrown exceptions can have over the
I have a simple application that runs a process that can last for several
I'm working with an incorrectly built spring application. Rather than use IOC, objects that
I have few graphic effects on image which i am able to run on
Does gwt have (good) support for effects, moving around elements, and resizing them? Are
I have this simple class: import spark.effects.GlowFilter; public class Letter extends Sprite { private
I have a problem using File.list() with file names with NON-ASCII characters incorrectly retrieved
I have a simple WCF service that i'm communicating with Asynchronously. The thing i
session.identify is a third party COM API that I call and have no access
In application.rb , it says: Set Time.zone default to the specified zone and make

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.