I need to store the IP of the DB and the printer during the first run of the app, so that the DB connectivity depends on the IP, I cannot use
Private jdbcUrl As String = "jdbc:jtds:sqlserver://192.168.1.25/db" in starter service,
Private printerip as string ="192.168.1.26:9100"
because the local IP address is not known(192.168.1.25), or whenever there is modem reset, the IP changes. So I need to store the above IP(192.168.1.25) somewhere in text file or DB during the first run.
Can someone please guide me ?
Private jdbcUrl As String = "jdbc:jtds:sqlserver://192.168.1.25/db" in starter service,
Private printerip as string ="192.168.1.26:9100"
because the local IP address is not known(192.168.1.25), or whenever there is modem reset, the IP changes. So I need to store the above IP(192.168.1.25) somewhere in text file or DB during the first run.
Can someone please guide me ?