Skip to main content
housy76
Participant
January 12, 2017
Question

JavaScript hostname

  • January 12, 2017
  • 2 replies
  • 703 views

Hi,

For a little JS script I am writing I need to get the hostname of the pc for printing
it on the PDF document. But until now I was not able to manage it.

Does someone now a little line of code to get the systems hostname?

(System: Windows 8.1 / Windows 10; Adobe: Version 11.0.16)

Tanks Housy

This topic has been closed for replies.

2 replies

Legend
January 12, 2017

Well a SOAP request is possible but requires a LiveCycle server product to prepare the file. You can submit a form and get an FDF reply in fields, but expect the user to need to confirm. Alternative: You could store it as a variable in a startup script.

housy76
housy76Author
Participant
January 12, 2017

Thanks a lot for the quick response. If the user has to confirm it this option is not possible in my case.

Legend
January 12, 2017

I can't imagine it is possible to get sensitive info like this.

housy76
housy76Author
Participant
January 12, 2017

Is there any chance to make a network request and receive my own hostname from another
server that resolves it via DNS and sends it back to me.