Monday 10 April 2017

In web application, how to get server running on node JS platform and client hostnames together so that we can compare both?

For a scenario, I need to compare whether server and client are running on the same machine, so I need to get Client's hostname (where browser is runnning ) and Server's hostname which is running on Node JS, that I suppose I can do it using OS module of NodeJS, something like os.hostname().

Not sure about the client side, please help. TIA



via user2218529

No comments:

Post a Comment