|
by: Stephen Remde |
last post by:
what the kosher way of vreating a tcp client/server app in .net?
can anyone recommend a good in depth tutorial?
currently im using a TcpListener but i cant get a remotre address from the
TcpClient's it returns
Stephen
|
by: Horst Walter |
last post by:
What is wrong here?
IPAddress ipAddress = IPAddress.Parse("10.10.20.1");
IPEndPoint ipEndPoint = new IPEndPoint(ipAddress, this.port);
this.tcpClient = new TcpClient(ipEndPoint); // PROBLEM HERE
=> Exception: "The requested address is not valid in its context"
This works:
|
by: Ethan |
last post by:
Hi,
In quite a fix here. Hope someone can help ASAP. I need
to get the IP address of the client that connects when I
use TcpListener.AcceptTcpConnections. I know I can get
the information using the socket class but I really need
to know how to get this information using the TcpClient
class. I tried writing a class from TcpCLient but then
found out that I can not cast down the inheritance
hierarchy, only up. Any help is greatly
|
by: Johann Blake |
last post by:
I am using the TcpClient to connect to a web site. I then open a
NetworkStream and read the contents that are being sent back. The
problem is that I have no idea when the remote host is finished
sending data. It is sending a web page but it doesn't use the
Content-Length header to indicate the size.
While I can use the DataAvailable property, it is well known that you
cannot rely on this to know when no more data is available.
What I...
|
by: MuZZy |
last post by:
HI,
How do i get a remote TcpClient address here?
// =======================================
TcpListener l = new TcpListener(IPAddress.Parse("127.0.0.1"), 8080);
TcpListener.Start();
While (true)
{
|
|
by: Benny Raymond |
last post by:
Is it possible to get the ip address of the pc connecting to my
TcpListener? Here's how my code works so far:
listener = new TcpListener(_myIP, _port);
listener.Start();
// block until we get a connection
TcpClient client = listener.AcceptTcpClient();
// at this point I need to store the IP address for
|
by: -J |
last post by:
When connecting to a server application via a TCP socket connection, how do I retrieve the IP Address of the client computer that is making the connection.
I create and IPEndPoint for the client, then call the connect using the endpoint.
The server application uses TCPListener to pick up client connections.
At this point I want to store the client's IP Address that is making the connection.
Thanks for the help.
|
by: anonymous_c |
last post by:
Hey guys. I'm creating a file transfer app. Anyways, I'm using this
code...
SERVER
<code>Dim Hostname As String = Dns.GetHostName
Dim IP As String =
Dns.GetHostByName(Hostname).AddressList(0).ToString
Public Sub RunServer()
Dim listener As TcpListener
|
by: Ankit Aneja |
last post by:
The code of classes given below is for server to which clients connect
i want to get ip address of client which has connected
pls help how can i get
//listen class
public class listen
{
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|