H huhhuhhuh Active member Joined Feb 28, 2006 Messages 42 Programming Experience Beginner Mar 21, 2006 #1 Suppose I've accepted a request using VB.NET: tcpclient=tcplistener.accepttcpclient How do I get the IP address of the client/source of the request? What format should I store it in?
Suppose I've accepted a request using VB.NET: tcpclient=tcplistener.accepttcpclient How do I get the IP address of the client/source of the request? What format should I store it in?
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,800 Location Norway Programming Experience 10+ Sep 16, 2006 #16 You'll get the TcpClient instance when calling the EndAcceptTcpClient. Simply do exactly as the example in documentation for asynchronous method BeginAcceptTcpClient http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.beginaccepttcpclient.aspx Upvote 0 Downvote
You'll get the TcpClient instance when calling the EndAcceptTcpClient. Simply do exactly as the example in documentation for asynchronous method BeginAcceptTcpClient http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.beginaccepttcpclient.aspx