sockets - Get Azure public IP address from deployed app -


I am implementing the PASV mode in an FTP server , And I send the client IP address and the port of data end point. This is stupid because the IP is actually where the customer is already connecting, so there are two options:

  1. How can I get from public IP address Am I given a given example? Not VIP , but the public is one.

  2. How could I get the original target IP address from a socket object that was used by the user? Keeping in mind the router and load balancers in the middle: P

    Answer any of these questions, though there is another way that can work ... Maybe I'm going to public ip address DNS on myapp.cloudapp.net

    one fourth The option will be used in the Azure Management API library ... but, too much trouble: p.

    Cheers.

    Not sure that you have ever detected it, but here I have to take it. Personal role examples All windows are behind Ezur Load Balancer and do not know what is the original, out-face-IP address. In addition, there is no management API call that returns the IP address - returns the URL to the deployment but not the IP address. I think the only option is going to be a DNS lookup.

    After saying this: I do not think you can host an inactive FTP server in the example of your role (at least not pretty). You can open up to 25 input overpoints on your role (above 5 - see my recent about this update), but there is manual work involved in the configuration. I do not know that your FTP application lets you set your port range to such a small number Lets limit the ports. Apart from this:

    • You must define each port as your input endpoint (this is the manual part of the manual that I have mentioned) - Allows input end points to specify a port range The internal endpoint of the opposite is not
    • You must specify the port number used internally, and the port number will need to be sequential

      One last thing on FTP:

Comments