(Lviv community of .NET developers)

Recent posts

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

Delete Old files from Command Line

January 29, 2008 11:23 by alexk

Very often administrator in any company have to solve simple problem: delete from server old files. How we can do this?

  1. Write command line script that will do this for us and run it periodically by windows scheduler service
  2. write custom application that will do the same
  3. find freeware or shareware with required functionality

In our case I want to introduce COMMAND LINE version of problem solving

... >>>

Be the first to rate this post

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