![]() |
| | #1 |
| Registered User Join Date: Nov 2005
Posts: 14
| getting ip in service using tcp connection But I have a little problem. I need to know every client IP. I searched a lot, and I found it to be easier using HttpChannel, where I can just use something like: Code: string clientAddress = HttpContext.Current.Request.UserHostAddress; But I'm using a TcpChannel as a connection. Code: namespace Server
{
class Server
{
static void Main(string[] args)
{
TcpChannel channel = new TcpChannel(8086);
ChannelServices.RegisterChannel(channel, true);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(ServerService),
"server",
WellKnownObjectMode.Singleton);
System.Console.WriteLine("press <enter> to quit...");
System.Console.ReadLine();
}
}
}
Thanks in advance. My best regards. |
| RevengerPT is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TCP IP Modbus | boschow | Networking/Device Communication | 0 | 03-27-2008 12:20 PM |
| Obtaining source & destination IP,details of ICMP Header & each of field of it ??? | cromologic | Networking/Device Communication | 1 | 04-29-2006 02:49 PM |
| Headers that use each other | nickname_changed | C++ Programming | 7 | 10-03-2003 04:25 AM |