473,508 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TCP Listener - Client IP?

Hi

I made a simple TCP Listener server application that listens to a specific
TCP port for incoming packets from a client. Everything seems to be fine. I
still don't know how to determine the client's IP address (which is the
source of the received packets).

Does anyone know how to find the client's IP address once the connection
between the server and the client is established?
Nov 21 '05 #1
1 2424
The System.Net.Sockets.Socket class has the RemoteEndPoint property, which
you must cast to IPEndPoint to get the IP address and port.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Amjad" <Am***@discussions.microsoft.com> escribió en el mensaje
news:39**********************************@microsof t.com...
Hi

I made a simple TCP Listener server application that listens to a specific
TCP port for incoming packets from a client. Everything seems to be fine.
I
still don't know how to determine the client's IP address (which is the
source of the received packets).

Does anyone know how to find the client's IP address once the connection
between the server and the client is established?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
38863
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server...
1
3720
by: Cherrish Vaidiyan | last post by:
sir, I have a small error in Listener configuration.I have two system with a database in each. I am using Red Hat 9 and Oracle 9i. so i shall anme the database and system. system 1 - node2 ...
3
694
by: Bill | last post by:
When vb6 Winsock.RemoteHost is set to "127.0.0.1", c# socket listener cannot hear connect request (my old vb6 winsock listener could hear it...). Why doesn't this work, and is there a work...
8
12812
by: Terry Olsen | last post by:
I've tried the following code straight out of MSDN. But my app still blocks while listening. Isn't this code supposed to keep the UI responsive while listening? Or maybe I'm not doing it...
1
1496
by: Stephanie Stowe | last post by:
Hi. I have a problem that I am trying to troubleshoot on a client's production (*sigh*) servers. On one server, we will call web2 all works well. On another server, we will call web1, the client...
0
257
by: Amjad | last post by:
Hi I made a simple TCP Listener server application that listens to a specific TCP port for incoming packets from a client. Everything seems to be fine. I still don't know how to determine the...
3
1704
by: Geoff | last post by:
I need to keep a few VB6 tcpClients active, but have them talk to a dotNet tcpServer/tcpListener. The "Server"/Listener is running as a Plugin, and needs to respond to "outside requests". The...
6
9145
by: Steve Teeples | last post by:
I have been perplexed by how to best treat an event that spans different classes. For example, I have a form which a user inputs data. I want to broadcast that data via an event to another...
1
1624
by: RealZombie | last post by:
I am working to write a client server program, that relies on threads. because of the way the program works the clients that connect to the server connect synchronously, but when I try to reopen the...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.