InterviewSolution
Saved Bookmarks
| 1. |
How Can We Get The Ip Address Of A Pc? |
|
Answer» You can use the following main[] INTEGER iRetum []STRING sCmdLine = “IPCONFIG” [] LIST OF STRING lsOutput [] iRetum = SYS_Execute (sCmdLine, lsOutput) [] listprint(lsOutput) output is []Windows IP CONFIGURATION [] Ethernet adapter Local Area CONNECTION: []Connection-specific DNS Suffix. abcd.xyz.net []TP Address : lx.2xx.2xx.79 [] SUBNET Mask., . . . . :255.255.0. []Default Gateway : 10.206. 1 .1 You need to do some trickery to parse and get the IP string.
You can use the following You need to do some trickery to parse and get the IP string.
|
|