-
ip adresses
There is some way to create a variable type for ip address or something built in.
Code:
TcpClient client = new TcpClient();
client.Connect(serverAddress, serverPort);
I want to have serverAddresss be able to handle an ip address in the usual form 24.24.43.123; or however i have to enter it in.
thanks
-
what? That really doesnt make any sense..serveraddress parameter can be an IPAddress.
-
Code:
using System.net;
IPAddress ipAdd = new IPAddress(0);
ipAdd = IPAddress.Parse("127.0.0.1");
I figured it out. Thanks for helping.
-
oh I see what you meant..ok. glad you figured it out