Hello community, anyone with an idea how to find the local IP Address(es) from within Navision ? Best would be the IP address in the same subnet which is used for the connection to the server (native or SQL).
No need for this anymore [:D] I can use the machine name instead which I retrieve with WSH.
Instead of the WSH on Computer with the OS Win XP or Win 2000 you can also use the “ENVIRON” Command. In German it is the following Command: ENVIRON(‘COMPUTERNAME’)
Thanks, but fortunatly we are spreading our system all around the world, we cannot rely on a certain language.
I need both the computer name and IP address of the machine using Navision. Can anyone help me wiht this?
One foolproof thing is to run ipconfig in shell, direct the output to file and parse the file afterwards. It is however not very nice - you will be getting a flashing command window on client startup.
The IP Address is a tricky thing as a computer might have more than one at a time. So even when you are determining the IP address running IPCONFIG you are having a problem to determine the right one. In fact it would help to have the IP address used by the Navision client to connect to the server in the Navision session table. But …
If you want to get the correct IP address used by Navision, you may also send the outpu of Netstat (-n -a) into file and parse it. Navision uses port 2047 by default in server end.