Getting client IP

When doing remoting (console application), is there a way to get the client IP address I want to block IP if they try to brute force the login.


Sub Main()

Dim chan As TcpChannel

chan = New TcpChannel(8085)

ChannelServices.RegisterChannel(chan)

RemotingConfiguration.RegisterWellKnownServiceType(GetType(Server), "RemotingServer", WellKnownObjectMode.Singleton)

Console.WriteLine("Server Activated")

Console.ReadLine()

End Sub



Public Class Server

Inherits MarshalByRefObject

Implements Common.IServer

...

End Class




Answer this question

Getting client IP