At present im using System.Net.IPAddress to display the IP address and port number in seperate labels on the form. Instead of manually coding the IP address I want the system to dynamically take it off the computer.
So this means if the programme is loaded on another machine instead of having to change the code this will automatically be done.
Hope this make sense and appreciate any suggestions
So this means if the programme is loaded on another machine instead of having to change the code this will automatically be done.
VB.NET:
[SIZE=2][COLOR=#0000ff]Const[/COLOR][/SIZE][SIZE=2] portNumber [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2] = 8080
Label13.Text = portNumber
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] localAdd [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.Net.IPAddress = System.Net.IPAddress.Parse("###.###.#.#")
Label12.Text = localAdd.ToString
[/SIZE]
Hope this make sense and appreciate any suggestions