By Nithin & group

Wednesday, October 14, 2009
Check out this SlideShare Presentation:

Remote Login- Noesis (CC06)

Tuesday, October 13, 2009
By Team NoesisRemote Login- Noesis
View more presentations from sourav894.

This is a program we made to connect a server & a client system-
SERVER
Imports System
Imports System.IO
Imports System.Net
Imports System.Net.Sockets
Imports System.Text
Imports Microsoft.VisualBasic
Module Module1

    Sub Main()
        Dim server As TcpListener
        server = Nothing
        Try
            ' Set the TcpListener on port 13000.
            Dim port As Int32 = 13000
            Dim localAddr As IPAddress = IPAddress.Parse("127.0.0.1")

            server = New TcpListener(localAddr, port)

            ' Start listening for client requests.
            server.Start()

            ' Buffer for reading data
            Dim bytes(1024) As Byte
            Dim data As String = Nothing

            ' Enter the listening loop.
            While True
                Console.Write("Waiting for a connection... ")

                ' Perform a blocking call to accept requests.
                ' You could also user server.AcceptSocket() here.
                Dim client As TcpClient = server.AcceptTcpClient()
                Console.WriteLine("Connected!")

                data = Nothing

                ' Get a stream object for reading and writing
                Dim stream As NetworkStream = client.GetStream()

                Dim i As Int32

                ' Loop to receive all the data sent by the client.
                i = stream.Read(bytes, 0, bytes.Length)
                While (i <> 0)
                    ' Translate data bytes to a ASCII string.
                    data = System.Text.Encoding.ASCII.GetString(bytes, 0, i)
                    Console.WriteLine("Received: {0}", data)

                    ' Process the data sent by the client.
                    Dim msg As Byte() = System.Text.Encoding.ASCII.GetBytes("Your request has been syccesfully recieved")

                    ' Send back a response.
                    stream.Write(msg, 0, msg.Length)
                    Console.WriteLine("Sent: {0}", data)

                    i = stream.Read(bytes, 0, bytes.Length)

                End While

                ' Shutdown and end connection
                client.Close()
            End While
        Catch e As SocketException
            Console.WriteLine("SocketException: {0}", e)
        Finally
            server.Stop()
        End Try

        Console.WriteLine(ControlChars.Cr + "Hit enter to continue....")
        Console.Read()

    End Sub

End Module


CLIENT
Imports System.Net.Sockets
Module Module1

    Sub Main()
        Console.WriteLine("Enter server IP Address and then press Enter... " & vbCrLf)
        Dim IP As String = Console.ReadLine()
        Console.Write("Eneter your message and press Enter..." & vbCrLf)
        Dim message As String
        message = Console.ReadLine
        Connect(IP, message)
    End Sub
    Private Sub Connect(ByVal server As [String], ByVal message As [String])
        Try
            ' Create a TcpClient.
            ' Note, for this client to work you need to have a TcpServer
            ' connected to the same address as specified by the server, port
            ' combination.
            Dim port As Int32 = 13000
            Dim client As New TcpClient(server, port)

            ' Translate the passed message into ASCII and store it as a Byte array.
            Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(message)

            ' Get a client stream for reading and writing.
            '  Stream stream = client.GetStream();
            Dim stream As NetworkStream = client.GetStream()

            ' Send the message to the connected TcpServer.
            stream.Write(data, 0, data.Length)

            Console.WriteLine("Sent: {0}", message)

            ' Receive the TcpServer.response.
            ' Buffer to store the response bytes.
            data = New [Byte](256) {}

            ' String to store the response ASCII representation.
            Dim responseData As [String] = [String].Empty

            ' Read the first batch of the TcpServer response bytes.
            Dim bytes As Int32 = stream.Read(data, 0, data.Length)
            responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes)
            Console.WriteLine("Received: {0}", responseData)

            ' Close everything.
            stream.Close()
            client.Close()
        Catch e As ArgumentNullException
            Console.WriteLine("ArgumentNullException: {0}", e)
        Catch e As SocketException
            Console.WriteLine("SocketException: {0}", e)
        End Try

        Console.WriteLine(ControlChars.Cr + " Press Enter to continue...")
        Console.Read()
    End Sub 'Connect

End Module


Connecting Sourav's & Masoud's Systems. Live Demo

Question by group 15

Are the ports used in the remote login application forwarded through the firewall?

Vivek (Visit My Site)
Rohit
Raunak
Preetham

For remote login session on 13th October

What is redirection?
How remote login achieves File, printer and other redirection??


BY CC3
Arpith
Prashant
Prateek
Sagar

Questions on Remote login by Ahmed's group

How to remote login redhat system?

Question goes to CC6

Monday, October 12, 2009
Please give more info on "FILE REDIRECTION"


by CC8
Tejus
Chaitra
Vishal
Vijetha

Question by CC10

Why is the client response slower when remote login is used?
--
Srikanth.V.Goutham
Surakshith.B
Shreyas.V
Amith Nayaka T.E

Questions by CC19

on   REMOTE LOGIN


for Ahmad's  Team

Q.  What port to forword to router and configure to access pc from a remote internet connection.




for Arpith's Team


 Q. I am using ShowMyPC to remote into my computer at home. My brother is logged in as a  User I need to log in as an admin and/or change his account permission to either "Power User" or "Network Configurator."   Is there any command I can type to log into my admin account e/o giving him my password?


Remote Login

By Ahmed & group

SSH And Rlogin

By Ahmed & group

Question by CC10

How do you configure a remote login software on a network that has dynamic ip's for every system (assuming that you don't have privileges to set static ips on any machine on the network)?

--
Srikanth.V.Goutham
Surakshith.B
Shreyas.V
Amith Nayaka T.E

QUESTIONS ON REMOTE LOGIN

Sunday, October 11, 2009
How to remote login to linux from windows?

question submitted by:

priya m.s
satchidanand das
karthik k
darshan thapa