How can I make an in page pop-up?

How do I display the local IP address of a computer on a web page?

  • I would like to create a link on our Intranet that will display the local IP address for a given users workstation. The user would be able to click on this link and tell me on the telephone what his/her IP is. I would like this displayed in a web page and not as a popup. This would be easier than the Start, Run, CMD, IPCONFIG routine that we make them do now. Thanks!

  • Answer:

    1. Create a new page 2. Save it with the extension asp (for example index.asp) 3. Add this code: <% Response.write "Your IP address is: " sIP = request.servervariables("Remote_Addr") Response.write sIP %> 4. Save the page and open in your browser. Assumes you are hosting the page on a server that supports server side VbScript such as IIS

carlsbl1... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

You can do this with Javascript: <SCRIPT> var ip = new java.net.InetAddress.getLocalHost(); var ipStr = new java.lang.String(ip); document.writeln(ipStr.substring(ipStr… </SCRIPT>

melvinschmugmeier

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.