Search code examples
ubuntuvpsubuntu-server

unique identifiers of a VPS


I am trying bind my application just to my VPS.

Can you please tell me about some identifier that each VPS has unique? Ideally something that can be determined by command in Ubuntu server.

Thanks in advance.


Solution

  • Three things come to mind.

    1. MAC Address
    2. Public IP Address
    3. Fully Qualified Domain Name of the host.

    Any of these three, or all three combined, should assist you in determining which node is which.

    These things are not limited to a VPS, either, so a method utilizing these parameters should also work on physical hardware.