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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:30:54+00:00 2026-06-15T23:30:54+00:00

I have a this code running on the sending side of a C# .NET

  • 0

I have a this code running on the sending side of a C# .NET socket-based application:

const int port = 1110;
System.Net.Sockets.UdpClient udp = null;

udp = new System.Net.Sockets.UdpClient(host, port);
...
byte[] data = m.Serialize();
udp.Send(data, data.Length);

And I have this code running on the receiving side:

System.Net.IPEndPoint replyAddress = new System.Net.IPEndPoint(
    System.Net.IPAddress.Any, port);
while ((udp != null) && (udp.Available > 0))
{
   ...
}

I have added an exception to the (Windows 7) firewall on the receiving end on UDP port 1110. However, the receiving side code never goes into the while loop unless I completely disable the firewall. Why is the port 1110 exception not taking effect? Using Microsoft Network Monitor, I can see messages trying to come in on port 1110 with a description like UDP:SrcPort = 1082, DstPort = 1110, Length = 11 (I think network monitor sees all messages on the local network, not just those that pass the firewall and are destined for the local system), but unless I disable the firewall completely, my application never receives them.

How can I figure out what’s going on here or fix it? I can have a breakpoint set inside the loop, and have the other side sending data, and the moment I disable the firewall, I hit the breakpoint, so I know the traffic can get through, but something about the firewall is preventing it. My firewall exception looks like this:

General

  • Enabled: True
  • Action: Allow the connection

Programs and Services

  • All programs that meed the specified conditions
  • Apply to all programs and services

Computers

  • (Unchecked & empty) Only allow connections from these computers
  • (Unchecked & empty) Skip this rule for connections from these computers

Protocols and Ports

  • Protocol type: UDP
  • Protocol number: 17
  • Local port: Specific Ports
  • Port: 1110
  • Remote port: All Ports

Scope

  • Local IP address: Any IP address
  • Remote IP address: Any IP address

Advanced

  • Specify profiles to which this rule applies: Domain, Private, Public (all checked)
  • Edge traversal: Allow edge traversal

Users

  • Authorized users: (Unchecked & empty) Only allow connections from these users
  • Exceptions: (Unchecked & empty) Skip this rule for connections from these users
  • 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-06-15T23:30:54+00:00Added an answer on June 15, 2026 at 11:30 pm

    After further searching of the firewall rules I discovered there was another rule to explicitly block the receiving program based on its path. When Windows pops up a message about a program wanting network access, I guess you have to be careful about how you respond. I intended to temporarily disallow access or cancel the operation (I hadn’t intended to run the program yet at the time). But once my response was taken, Windows added a rule to permanently block all access by that program. Deleting those rules allowed the UDP communication to get through the firewall as expected.

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

Sidebar

Related Questions

I have this code running in my onDestroy function: @Override protected void onDestroy() {
I have this code running great in ff, opera and chrome: <script type=text/javascript> $(document).ready(function(){
Code is not running on .click when I have this: $(.cancel).click(function() { alert(got here);
I have been using this code, but have been running into some memory issues:
I'm a beginner with jdbc ... I have a problem running this code :
I have this code : void Main() { System.Timers.Timer t = new System.Timers.Timer (1000);
I have this code which I am using to check if a UDP socket
I have this code that was running for about 2 hours. After that the
I have this code <div id=main style=background:#aaaaaa;float:left;height:160px;margin:5px;position:relative;display:block;width:630px;> <div id=1 class=item style=background:#ffaacc;float:left;width:200px;height:150px;margin:5px;position:absolute;left:0px;top:0px;> </div> <div id=2
I have this code for changing the image of a button: - (void)mouseEntered:(NSEvent *)event

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.