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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:07:27+00:00 2026-06-05T11:07:27+00:00

I have an internal endpoint setting as below: <InternalEndpoint name=TcpSvcEndpoint protocol=tcp port=20000 /> The

  • 0

I have an internal endpoint setting as below:

<InternalEndpoint name="TcpSvcEndpoint" protocol="tcp" port="20000" />

The endpoint will be used by a NetTcp WCF Service. Configuration works fine if I have 1 instance running in compute emulator. But with 2 or more instance in compute emulator (Visual Studio debugging Azure project), same port gets assigned to all of the instances. This of course fails WCF NetTcp initialization for all services (except for the very first instance) with expected exception “There is already a listener on IP endpoint. Make sure ….. SocketException: Only one usage of each socket …..“.

My understanding was that the emulator will increment the port for each instance. If thats not the case, how do you test multiple instances on compute emulator while debugging in Visual Studio?

I don’t want to use the dynamic port setting with “*”.

For clarification, I am accessing the RoleEnvironment to get the assigned port.

RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["TcpSvcEndpoint"].IPEndpoint.Port;

I am using Azure SDK 1.6. (Nov. 2011 version).

  • 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-05T11:07:30+00:00Added an answer on June 5, 2026 at 11:07 am

    With Windows Azure SDK 1.5 and above multiple instances have different IP address but the same port as defined in EndPoint settings as described my this blog.

    They way it works is that, if you have defined a TCP endpoint with port 10000 with 2 instance then you will get Instance IP address as below:

    • Instance #1 – 127.255.0.1:10000
    • Instance #2 – 127.255.0.2:10000

    So if you have to test all the instances of a service in compute emulator. you would need to get the IPAddress and the Port combined to test the application.

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

Sidebar

Related Questions

I have two internal properties that use lazy-loading of backing fields, and are used
We have an internal asp.net forms app where one page is essentially a WYSIWYG
I have an internal WPF client application that accesses a database. The application is
I Have an internal SOAP Web service that is being called from an external
We have an internal ASP.NET MVC application that requires a logon. Log on works
I have a internal website hosted on IIS. I added the following meta code
I have an internal web application, that is IE specific, and uses a lot
I have some internal link which shows different content. Everytime I click the internal
I have 2 internal div's within a main div JSfiddle - http://jsfiddle.net/uwdnH/ Illustration -
We have an internal software development team in my company that are building 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.