Unable to open WebDeploy port (8172) on Azure












0














I'm unable to open a webdeploy port (8172) on my Azure machine.



enter image description here



enter image description here



I added an endpoint on Azure:
enter image description here



Added rules to the Firewall:
enter image description here



Tried even disable the firewall...



No success.



What else can I check?



The problem started from some message about certificate. I am not sure it linked to the problem but I am looking for the problem for two days and have no idea what else I can do...



Thank you.










share|improve this question




















  • 1




    Is the port listening for 0.0.0.0:port when you check netstat -anboon the windows machine locally?
    – Nancy Xiong
    Nov 21 at 7:01












  • @NancyXiong-MSFT could you please explain what you mean? How can I know?
    – Igor
    Nov 21 at 7:03










  • Is this the answer to your question? prntscr.com/ll038y
    – Igor
    Nov 21 at 7:05












  • Why does it say 8173 in your screenshot? Shouldn't that be 8172 instead?
    – evilSnobu
    Nov 21 at 7:05










  • @evilSnobu it is the private port. The public (also on the screenshot) is 8172.
    – Igor
    Nov 21 at 7:06
















0














I'm unable to open a webdeploy port (8172) on my Azure machine.



enter image description here



enter image description here



I added an endpoint on Azure:
enter image description here



Added rules to the Firewall:
enter image description here



Tried even disable the firewall...



No success.



What else can I check?



The problem started from some message about certificate. I am not sure it linked to the problem but I am looking for the problem for two days and have no idea what else I can do...



Thank you.










share|improve this question




















  • 1




    Is the port listening for 0.0.0.0:port when you check netstat -anboon the windows machine locally?
    – Nancy Xiong
    Nov 21 at 7:01












  • @NancyXiong-MSFT could you please explain what you mean? How can I know?
    – Igor
    Nov 21 at 7:03










  • Is this the answer to your question? prntscr.com/ll038y
    – Igor
    Nov 21 at 7:05












  • Why does it say 8173 in your screenshot? Shouldn't that be 8172 instead?
    – evilSnobu
    Nov 21 at 7:05










  • @evilSnobu it is the private port. The public (also on the screenshot) is 8172.
    – Igor
    Nov 21 at 7:06














0












0








0







I'm unable to open a webdeploy port (8172) on my Azure machine.



enter image description here



enter image description here



I added an endpoint on Azure:
enter image description here



Added rules to the Firewall:
enter image description here



Tried even disable the firewall...



No success.



What else can I check?



The problem started from some message about certificate. I am not sure it linked to the problem but I am looking for the problem for two days and have no idea what else I can do...



Thank you.










share|improve this question















I'm unable to open a webdeploy port (8172) on my Azure machine.



enter image description here



enter image description here



I added an endpoint on Azure:
enter image description here



Added rules to the Firewall:
enter image description here



Tried even disable the firewall...



No success.



What else can I check?



The problem started from some message about certificate. I am not sure it linked to the problem but I am looking for the problem for two days and have no idea what else I can do...



Thank you.







azure port firewall webdeploy azure-cloud-services






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 20:46









Nancy Xiong

2,380116




2,380116










asked Nov 21 at 6:54









Igor

7719




7719








  • 1




    Is the port listening for 0.0.0.0:port when you check netstat -anboon the windows machine locally?
    – Nancy Xiong
    Nov 21 at 7:01












  • @NancyXiong-MSFT could you please explain what you mean? How can I know?
    – Igor
    Nov 21 at 7:03










  • Is this the answer to your question? prntscr.com/ll038y
    – Igor
    Nov 21 at 7:05












  • Why does it say 8173 in your screenshot? Shouldn't that be 8172 instead?
    – evilSnobu
    Nov 21 at 7:05










  • @evilSnobu it is the private port. The public (also on the screenshot) is 8172.
    – Igor
    Nov 21 at 7:06














  • 1




    Is the port listening for 0.0.0.0:port when you check netstat -anboon the windows machine locally?
    – Nancy Xiong
    Nov 21 at 7:01












  • @NancyXiong-MSFT could you please explain what you mean? How can I know?
    – Igor
    Nov 21 at 7:03










  • Is this the answer to your question? prntscr.com/ll038y
    – Igor
    Nov 21 at 7:05












  • Why does it say 8173 in your screenshot? Shouldn't that be 8172 instead?
    – evilSnobu
    Nov 21 at 7:05










  • @evilSnobu it is the private port. The public (also on the screenshot) is 8172.
    – Igor
    Nov 21 at 7:06








1




1




Is the port listening for 0.0.0.0:port when you check netstat -anboon the windows machine locally?
– Nancy Xiong
Nov 21 at 7:01






Is the port listening for 0.0.0.0:port when you check netstat -anboon the windows machine locally?
– Nancy Xiong
Nov 21 at 7:01














@NancyXiong-MSFT could you please explain what you mean? How can I know?
– Igor
Nov 21 at 7:03




@NancyXiong-MSFT could you please explain what you mean? How can I know?
– Igor
Nov 21 at 7:03












Is this the answer to your question? prntscr.com/ll038y
– Igor
Nov 21 at 7:05






Is this the answer to your question? prntscr.com/ll038y
– Igor
Nov 21 at 7:05














Why does it say 8173 in your screenshot? Shouldn't that be 8172 instead?
– evilSnobu
Nov 21 at 7:05




Why does it say 8173 in your screenshot? Shouldn't that be 8172 instead?
– evilSnobu
Nov 21 at 7:05












@evilSnobu it is the private port. The public (also on the screenshot) is 8172.
– Igor
Nov 21 at 7:06




@evilSnobu it is the private port. The public (also on the screenshot) is 8172.
– Igor
Nov 21 at 7:06












2 Answers
2






active

oldest

votes


















1














When you set up endpoints on a Windows virtual machine by using the classic deployment model. You could change the private port to 8172 for webdeploy. It seems that the private port is used by the virtual machine to listen for incoming traffic:




The public port is used by the Azure load balancer to listen for
incoming traffic to the virtual machine from the internet. The private
port is used by the virtual machine to listen for incoming traffic,
typically destined to an application or service running on the virtual
machine.




Update



After chatting with you, now you are facing the issue that you cannot change the public and private port to the same due to the floating IP address is enabled. I found there is a note that changing floating IP status takes effect until you save it in the UI. You can first create a test rule like public port 8001, a different private port 8000 because of the current floating IP address is really enabled, and select the floating IP address is disabled, then save it. Now the disabled floating IP address takes effect now. Then you can add the new rule for public and private port 8172. Delete the test rule.



Ref: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/setup-endpoints






share|improve this answer























  • Changed but still without success. But seems that you are right and I should continue exploring in this direction...
    – Igor
    Nov 21 at 8:02










  • Can you telnet 8172 with the public IP of Azure VM when you access the VM outside of Azure VM?
    – Nancy Xiong
    Nov 21 at 8:20












  • This is the problem, I can't telnet "Could not open connection to the host, on port 8172: Connect failed"
    – Igor
    Nov 21 at 8:21










  • Can you check the firewall or other restrcition on the local machine?
    – Nancy Xiong
    Nov 21 at 8:22










  • Firewall is open: i.stack.imgur.com/wm6gZ.png
    – Igor
    Nov 21 at 8:24



















0














Seems that this is a Microsoft's bug: https://social.msdn.microsoft.com/Forums/en-US/fc51b3fa-72c1-4e3c-a942-7da26acecd0d/endpoints-with-same-publicprivate-port-error?forum=WAVirtualMachinesforWindows






share|improve this answer





















  • Seem that it's bug, the first time, you can add the same port, then the second time you can not, I have tried it many times. You can regard the floating IP as enabled even it shows the disabled, then you can add another rule with the different port and select the disabled floating IP, save it. And try to add the same port, don't click the floating IP tab, then save it. It works for me.
    – Nancy Xiong
    Nov 22 at 15:26













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53406693%2funable-to-open-webdeploy-port-8172-on-azure%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














When you set up endpoints on a Windows virtual machine by using the classic deployment model. You could change the private port to 8172 for webdeploy. It seems that the private port is used by the virtual machine to listen for incoming traffic:




The public port is used by the Azure load balancer to listen for
incoming traffic to the virtual machine from the internet. The private
port is used by the virtual machine to listen for incoming traffic,
typically destined to an application or service running on the virtual
machine.




Update



After chatting with you, now you are facing the issue that you cannot change the public and private port to the same due to the floating IP address is enabled. I found there is a note that changing floating IP status takes effect until you save it in the UI. You can first create a test rule like public port 8001, a different private port 8000 because of the current floating IP address is really enabled, and select the floating IP address is disabled, then save it. Now the disabled floating IP address takes effect now. Then you can add the new rule for public and private port 8172. Delete the test rule.



Ref: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/setup-endpoints






share|improve this answer























  • Changed but still without success. But seems that you are right and I should continue exploring in this direction...
    – Igor
    Nov 21 at 8:02










  • Can you telnet 8172 with the public IP of Azure VM when you access the VM outside of Azure VM?
    – Nancy Xiong
    Nov 21 at 8:20












  • This is the problem, I can't telnet "Could not open connection to the host, on port 8172: Connect failed"
    – Igor
    Nov 21 at 8:21










  • Can you check the firewall or other restrcition on the local machine?
    – Nancy Xiong
    Nov 21 at 8:22










  • Firewall is open: i.stack.imgur.com/wm6gZ.png
    – Igor
    Nov 21 at 8:24
















1














When you set up endpoints on a Windows virtual machine by using the classic deployment model. You could change the private port to 8172 for webdeploy. It seems that the private port is used by the virtual machine to listen for incoming traffic:




The public port is used by the Azure load balancer to listen for
incoming traffic to the virtual machine from the internet. The private
port is used by the virtual machine to listen for incoming traffic,
typically destined to an application or service running on the virtual
machine.




Update



After chatting with you, now you are facing the issue that you cannot change the public and private port to the same due to the floating IP address is enabled. I found there is a note that changing floating IP status takes effect until you save it in the UI. You can first create a test rule like public port 8001, a different private port 8000 because of the current floating IP address is really enabled, and select the floating IP address is disabled, then save it. Now the disabled floating IP address takes effect now. Then you can add the new rule for public and private port 8172. Delete the test rule.



Ref: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/setup-endpoints






share|improve this answer























  • Changed but still without success. But seems that you are right and I should continue exploring in this direction...
    – Igor
    Nov 21 at 8:02










  • Can you telnet 8172 with the public IP of Azure VM when you access the VM outside of Azure VM?
    – Nancy Xiong
    Nov 21 at 8:20












  • This is the problem, I can't telnet "Could not open connection to the host, on port 8172: Connect failed"
    – Igor
    Nov 21 at 8:21










  • Can you check the firewall or other restrcition on the local machine?
    – Nancy Xiong
    Nov 21 at 8:22










  • Firewall is open: i.stack.imgur.com/wm6gZ.png
    – Igor
    Nov 21 at 8:24














1












1








1






When you set up endpoints on a Windows virtual machine by using the classic deployment model. You could change the private port to 8172 for webdeploy. It seems that the private port is used by the virtual machine to listen for incoming traffic:




The public port is used by the Azure load balancer to listen for
incoming traffic to the virtual machine from the internet. The private
port is used by the virtual machine to listen for incoming traffic,
typically destined to an application or service running on the virtual
machine.




Update



After chatting with you, now you are facing the issue that you cannot change the public and private port to the same due to the floating IP address is enabled. I found there is a note that changing floating IP status takes effect until you save it in the UI. You can first create a test rule like public port 8001, a different private port 8000 because of the current floating IP address is really enabled, and select the floating IP address is disabled, then save it. Now the disabled floating IP address takes effect now. Then you can add the new rule for public and private port 8172. Delete the test rule.



Ref: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/setup-endpoints






share|improve this answer














When you set up endpoints on a Windows virtual machine by using the classic deployment model. You could change the private port to 8172 for webdeploy. It seems that the private port is used by the virtual machine to listen for incoming traffic:




The public port is used by the Azure load balancer to listen for
incoming traffic to the virtual machine from the internet. The private
port is used by the virtual machine to listen for incoming traffic,
typically destined to an application or service running on the virtual
machine.




Update



After chatting with you, now you are facing the issue that you cannot change the public and private port to the same due to the floating IP address is enabled. I found there is a note that changing floating IP status takes effect until you save it in the UI. You can first create a test rule like public port 8001, a different private port 8000 because of the current floating IP address is really enabled, and select the floating IP address is disabled, then save it. Now the disabled floating IP address takes effect now. Then you can add the new rule for public and private port 8172. Delete the test rule.



Ref: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/setup-endpoints







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 22 at 5:02

























answered Nov 21 at 7:29









Nancy Xiong

2,380116




2,380116












  • Changed but still without success. But seems that you are right and I should continue exploring in this direction...
    – Igor
    Nov 21 at 8:02










  • Can you telnet 8172 with the public IP of Azure VM when you access the VM outside of Azure VM?
    – Nancy Xiong
    Nov 21 at 8:20












  • This is the problem, I can't telnet "Could not open connection to the host, on port 8172: Connect failed"
    – Igor
    Nov 21 at 8:21










  • Can you check the firewall or other restrcition on the local machine?
    – Nancy Xiong
    Nov 21 at 8:22










  • Firewall is open: i.stack.imgur.com/wm6gZ.png
    – Igor
    Nov 21 at 8:24


















  • Changed but still without success. But seems that you are right and I should continue exploring in this direction...
    – Igor
    Nov 21 at 8:02










  • Can you telnet 8172 with the public IP of Azure VM when you access the VM outside of Azure VM?
    – Nancy Xiong
    Nov 21 at 8:20












  • This is the problem, I can't telnet "Could not open connection to the host, on port 8172: Connect failed"
    – Igor
    Nov 21 at 8:21










  • Can you check the firewall or other restrcition on the local machine?
    – Nancy Xiong
    Nov 21 at 8:22










  • Firewall is open: i.stack.imgur.com/wm6gZ.png
    – Igor
    Nov 21 at 8:24
















Changed but still without success. But seems that you are right and I should continue exploring in this direction...
– Igor
Nov 21 at 8:02




Changed but still without success. But seems that you are right and I should continue exploring in this direction...
– Igor
Nov 21 at 8:02












Can you telnet 8172 with the public IP of Azure VM when you access the VM outside of Azure VM?
– Nancy Xiong
Nov 21 at 8:20






Can you telnet 8172 with the public IP of Azure VM when you access the VM outside of Azure VM?
– Nancy Xiong
Nov 21 at 8:20














This is the problem, I can't telnet "Could not open connection to the host, on port 8172: Connect failed"
– Igor
Nov 21 at 8:21




This is the problem, I can't telnet "Could not open connection to the host, on port 8172: Connect failed"
– Igor
Nov 21 at 8:21












Can you check the firewall or other restrcition on the local machine?
– Nancy Xiong
Nov 21 at 8:22




Can you check the firewall or other restrcition on the local machine?
– Nancy Xiong
Nov 21 at 8:22












Firewall is open: i.stack.imgur.com/wm6gZ.png
– Igor
Nov 21 at 8:24




Firewall is open: i.stack.imgur.com/wm6gZ.png
– Igor
Nov 21 at 8:24













0














Seems that this is a Microsoft's bug: https://social.msdn.microsoft.com/Forums/en-US/fc51b3fa-72c1-4e3c-a942-7da26acecd0d/endpoints-with-same-publicprivate-port-error?forum=WAVirtualMachinesforWindows






share|improve this answer





















  • Seem that it's bug, the first time, you can add the same port, then the second time you can not, I have tried it many times. You can regard the floating IP as enabled even it shows the disabled, then you can add another rule with the different port and select the disabled floating IP, save it. And try to add the same port, don't click the floating IP tab, then save it. It works for me.
    – Nancy Xiong
    Nov 22 at 15:26


















0














Seems that this is a Microsoft's bug: https://social.msdn.microsoft.com/Forums/en-US/fc51b3fa-72c1-4e3c-a942-7da26acecd0d/endpoints-with-same-publicprivate-port-error?forum=WAVirtualMachinesforWindows






share|improve this answer





















  • Seem that it's bug, the first time, you can add the same port, then the second time you can not, I have tried it many times. You can regard the floating IP as enabled even it shows the disabled, then you can add another rule with the different port and select the disabled floating IP, save it. And try to add the same port, don't click the floating IP tab, then save it. It works for me.
    – Nancy Xiong
    Nov 22 at 15:26
















0












0








0






Seems that this is a Microsoft's bug: https://social.msdn.microsoft.com/Forums/en-US/fc51b3fa-72c1-4e3c-a942-7da26acecd0d/endpoints-with-same-publicprivate-port-error?forum=WAVirtualMachinesforWindows






share|improve this answer












Seems that this is a Microsoft's bug: https://social.msdn.microsoft.com/Forums/en-US/fc51b3fa-72c1-4e3c-a942-7da26acecd0d/endpoints-with-same-publicprivate-port-error?forum=WAVirtualMachinesforWindows







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 at 14:59









Igor

7719




7719












  • Seem that it's bug, the first time, you can add the same port, then the second time you can not, I have tried it many times. You can regard the floating IP as enabled even it shows the disabled, then you can add another rule with the different port and select the disabled floating IP, save it. And try to add the same port, don't click the floating IP tab, then save it. It works for me.
    – Nancy Xiong
    Nov 22 at 15:26




















  • Seem that it's bug, the first time, you can add the same port, then the second time you can not, I have tried it many times. You can regard the floating IP as enabled even it shows the disabled, then you can add another rule with the different port and select the disabled floating IP, save it. And try to add the same port, don't click the floating IP tab, then save it. It works for me.
    – Nancy Xiong
    Nov 22 at 15:26


















Seem that it's bug, the first time, you can add the same port, then the second time you can not, I have tried it many times. You can regard the floating IP as enabled even it shows the disabled, then you can add another rule with the different port and select the disabled floating IP, save it. And try to add the same port, don't click the floating IP tab, then save it. It works for me.
– Nancy Xiong
Nov 22 at 15:26






Seem that it's bug, the first time, you can add the same port, then the second time you can not, I have tried it many times. You can regard the floating IP as enabled even it shows the disabled, then you can add another rule with the different port and select the disabled floating IP, save it. And try to add the same port, don't click the floating IP tab, then save it. It works for me.
– Nancy Xiong
Nov 22 at 15:26




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53406693%2funable-to-open-webdeploy-port-8172-on-azure%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'