Make your own FTP Register/login feature

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
18 posts Page 2 of 2
User avatar
luckie12
Just Registered
Just Registered
Posts: 3
Joined: Sun Jun 27, 2010 8:59 am

zachman61 wrote:
whats the problem?

When i click Register entering a username & password and clicking OK,
But when i clicked i get this:
Code: Select all
'96.9.158.165/usr.txt' is not a valid remote file address. A valid address should include a protocol, a path and a file name. Parameter name: address

Code:
Code: Select all
Public Class Form3

    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            My.Computer.Network.DownloadFile("ftp://server47.000webhost.com/public_html/" + TextBox1.Text + ".txt", "C:\" + TextBox1.Text + ".txt", "heremyusername", "heremypassword")
            Dim auth As String = My.Computer.FileSystem.ReadAllText("C:\" + TextBox1.Text + ".txt")
            If auth = TextBox2.Text Then
                MsgBox("Congrats! You have Access")
            Else
                MsgBox("You have entered a wrong password!")
            End If
        Catch ex As System.Net.WebException
            MsgBox("That Username does not exist!")
        End Try
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim usr As String = InputBox("Please enter a username", "Username")
        Dim psw As String = InputBox("Please enter a password", "Password")
        My.Computer.FileSystem.WriteAllText("C:\" + usr + ".txt", psw, False)
        My.Computer.Network.UploadFile("C:\" + "usr" + ".txt", "96.9.158.165/" + "usr" + ".txt", _
                "heremyusername", "heremypassword")
        My.Computer.FileSystem.DeleteFile("C:\" + "usr" + ".txt")
        MsgBox("Registration Complete")
    End Sub
End Class
User avatar
astheyfall
VIP - Donator
VIP - Donator
Posts: 160
Joined: Sun Sep 19, 2010 6:13 am

I get a error/warning thing when I press Ok on the password part of the registration, it will stop it and highlight a part of code.
User avatar
rocky4126
VIP - Donator
VIP - Donator
Posts: 258
Joined: Mon Nov 16, 2009 7:39 pm

luckie12: It has to be ftp://96.9.158.165/usr.txt.
Image
User avatar
astheyfall
VIP - Donator
VIP - Donator
Posts: 160
Joined: Sun Sep 19, 2010 6:13 am

astheyfall wrote:
I get a error/warning thing when I press Ok on the password part of the registration, it will stop it and highlight a part of code.
Code: Select all
Access to the path 'C:\33.txt' is denied.

Can someone help?
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

No need to double post as there's a button called "Edit"
Top-notch casual Dating
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

I'll post verified tutorial tonight, and stop "not hating" or what ever you are doing, it is transmitted disease that bad mood :/
User avatar
RunarM
Hardcore Programmer
Hardcore Programmer
Posts: 508
Joined: Wed Nov 18, 2009 11:33 pm

Here is a new working version for those who still want it:

FTP Login:
FTP login.zip
CnS Login:
CnS Login.zip
IP Login:
viewtopic.php?f=71&p=27233#p27233

MAC address Login:
viewtopic.php?p=53498#p53498

-RunarM
You do not have the required permissions to view the files attached to this post.
Last edited by RunarM on Sat Sep 17, 2011 9:55 pm, edited 1 time in total.
Just another day in my life.
http://www.codexvideos.com
User avatar
RunarM
Hardcore Programmer
Hardcore Programmer
Posts: 508
Joined: Wed Nov 18, 2009 11:33 pm

M1z23R wrote:
RunarM :
insted of using "IP Register/Login" you should use "MAC ADDRESS Register/Login" it is unchangeble
I made the MAC address register/login feature:
MAC address login.zip
(Thanks to Codex for helping me fix bugs)

-RunarM
You do not have the required permissions to view the files attached to this post.
Last edited by RunarM on Sat Sep 17, 2011 9:54 pm, edited 1 time in total.
Just another day in my life.
http://www.codexvideos.com
18 posts Page 2 of 2
Return to “Tutorials”