I wan't to publish my hostname so that I can access the server from anywhere I want. How can I possibly implement this in golang?
This can be related to defining java.rmi.sever.hostname to my IP address, does golang support this kind of binding?
migrated from stackoverflow.com Jun 14 '13 at 13:07
This question came from our site for professional and enthusiast programmers.
If you want to publish your hostname to DNS you can use a dynamic DNS update to an appropriately configured server with miekg's dns package. If you use dyndns then there's a dyndns go client, too, that you probably can adapt to be part of your program.
If you just want to publicize your service on the local network, then at least for Linux and OS X (including iOS) clients you can do it with multicast dns.