(Lviv community of .NET developers)

Recent posts

Семiнари для розробникiв

September 17, 2008 04:46 by rredcat
23 вересня — 27 листопада 2008 року
Київ, Житомир, Рiвне, Тернопiль, Хмельницький, Вiнниця, Миколаїв, Херсон, Суми, Iвано-Франкiвськ, Днiпропетровськ, Запорiжжя, Донецьк, Харкiв, Львiв, Сiмферополь, Одеса ... >>>

Currently rated 5.0 by 3 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , ,
Categories: WPF | .NET | WinForms | Links | ASP.NET | WinFx | Networking
Actions: Permalink | Comments (0) | RSSRSS comment feed

IP geo-location - make it easy!

September 12, 2008 03:49 by alexk

Introduction

Today I want to open one more interesting part of making internet business - statistics collection. I hope you already knows popular service Google Analytics that helps many companies to track internet activity on web site (main issue that those analytics is not runtime, you have to wait 1 day for getting ready to use statistics). But do you want to know how to make own statistics tracking engine on IIS? I hope you do.

In this article I will describe how to collect statistics from IIS and how to do most common thing - resolve clients IP into geo-locations.

Theory

Let's make a quick look on web site hosting. What we can see? Let's count:

  1. IIS hosting server
  2. Web site (for example ASP.NET)
  3. Database (for example MS SQL Server)

Those 3 components are the most common for every web site based on Microsoft technologies.

Statistics tracking can be done only on first two components: IIS and ASP.NET... (but this is not exactly true, if take a look into depth then we can identify that in reality we have only one component IIS and it's filters model - ISAPI filters.)

Tracking of statistics on IIS layer is well described by Microsoft in own knowledge database.

... >>>

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

TCP ports forwarding, tunneling, proxies

April 27, 2008 08:32 by alexk
Hi Everyone,

Today I want to share a small piece of code that demonstrate TCP Sockets usage in .NET.

This is not very advanced example of sockets programming, but at the same time it show a lot of technics that you can use in programming, like:
- debugging of the windows services
- async sockets
- async operations and there synchronization
- events used for service controlling
- registry access
- advanced tracing/logs
- and etc.

Introduction

The idea was to write a simple TCP proxy class that will help us to forward ports (or better to say create a tunnel) from one source to destination.

In my case I want to use this functinality to open direct access to my computer in network shown below (ADSL modem connected by lan to the Vista computer; Vista publich AdHoc connection to the other computer Windows Xp. I setup service on Vista PC that helps me to open port directly for the Windows XP computer!!!):


In more simple way it's looks like this (configuration for testing):

... >>>

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5