سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد تنظیم Port برای IPEndPoint در سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی کد به این صورت می باشد :
The changed IPEndPoint value is: 192.168.1.1:80
کد تنظیم Port برای IPEndPoint در سی شارپ #C :
using System;
using System.Net;
class MainClass
{
public static void Main()
{
IPAddress test1 = IPAddress.Parse("192.168.1.1");
IPEndPoint ie = new IPEndPoint(test1, 8000);
ie.Port = 80;
using System.Net;
class MainClass
{
public static void Main()
{
IPAddress test1 = IPAddress.Parse("192.168.1.1");
IPEndPoint ie = new IPEndPoint(test1, 8000);
ie.Port = 80;