Get the IP Address of the RDP Client using vb.net -
i'm trying ip address of rdp client can keep record of connecting our server , @ times. there way using vb.net? i've tried returns ip address of server.
thanks!
an excerpt actual code looking for.
private sub button1_click(byval sender object, byval e system.eventargs) handles button1.click dim servername string dim clientinfo new wts_client_info redim clientinfo.address(20) servername = "" 'server name can name of choice or name of server on application running if getsessions(servername, clientinfo) = true dim str string str = "user name: " & clientinfo.wtsusername str &= vbnewline & "station name: " & clientinfo.wtsstationname str &= vbnewline & "domain name: " & clientinfo.wtsdomainname if clientinfo.wtsstationname <> "console" str &= vbnewline & "client name: " & clientinfo.wtsclientname str &= vbnewline & "client ip: " & clientinfo.address(2) & "." & clientinfo.address(3) & "." & clientinfo.address(4) & "." & clientinfo.address(5) end if messagebox.show(str) end if end sub
Comments
Post a Comment