VB programming

Play Now

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
2
105
Ok im trying to make a program but i have no idea on how to use VB

i got the code ok but its the rest of it lol

anyone help????

Code is here might need debugging

Code:
Private Sub Closer_Click()
Winsock1.Close
Winsock2.Close
End
End Sub
Private Sub Opener_Click()
If Text1.Text = "" Then
MsgBox "Please enter a port number"
Else
X = Text1.Text
Z = "127.0.0.1"
Winsock1.LocalPort = X
Winsock1.Listen
Winsock2.Connect Z, X
End If
End Sub
Private Sub Helper_Click()
Form2.Show
End Sub
 
Last edited:

LeoCrasher

Former Administrator
VIP
Mar 23, 2003
2,001
4
215
::1
Well it looks to do exactly what its coded to do, which is what you would expect :P.

Perhaps if you told us what you want it to do, which it isn't?

/Leo
 

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
2
105
Ok so what i want it to do is open a port on my pc, as i cant do it any other way

erm

I dont know how to use VB,

I want it to ask what port it is that you need to open and i want or i want it to open a port range or just open 3 diff ports so i can run a mir server

Hope this helps
 

LeoCrasher

Former Administrator
VIP
Mar 23, 2003
2,001
4
215
::1
Ok, this is not the way to go about it.

Ports are 'open' when a program instructs them to open. Your VB program cannot open a port for another program. You could tunnel using your method, but that would require the destination port to be open already lol.

For typical setups, there are two obstacles to making open ports accessible. The windows or other firewalls installed on the computer, and the routers port forwarding setup. The mir server help section contains extensive posts since the beginning of time on this topic.

/Leo
 

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
2
105
i have tryed all that and i have also got my mate to try and hack it open and it just wont open i have even take off all firewalls, even on home hub but still wont open

Makes me believe that ISP is blocking that port but all ports i have tryed wont work ><
 

LeoCrasher

Former Administrator
VIP
Mar 23, 2003
2,001
4
215
::1
Everyone seems to get stumped by the windows firewall.

Are you sure you disabled the built in windows firewall?
How do you connect to the internet? You call it a 'hub', but I find that unlikely. Name and model of the device please.

/Leo
 

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
2
105
Windows firewall is disabled also added in the exceptions port 7000

Im using Bt Home Hub
 

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Are people unable to google these days?

http://www.frequencycast.co.uk/homehub.html

You give the Server Machine a FIXED IP, when you run the programs, windows firewall will pop up and ask if you want to let it through (you say yes lol). Go to that page and learn how to pop holes in your router and let 7000 etc through the the Fixed IP you had set for that PC.

No need to write and release some weird program.,,,
 

LeoCrasher

Former Administrator
VIP
Mar 23, 2003
2,001
4
215
::1
Ports 3000,7000,7100 and 7200 are needed for a MIR server, as well as setting up the files correctly ;)

Good luck
/Leo
 

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
2
105
The files are set up correctly ;)

And

Dem

I have used google m8 i know how to use it just didnt find anything use full other than Portforward.com i find crap and hackers exploit it as i was attacked loads of times after setting it up before, also that page is a load of rubish as i have done the port forwarding part already m8

Hence why Eternal has not been up and running yet as some haxor go past my firewall because of that site
 
Last edited:

LeoCrasher

Former Administrator
VIP
Mar 23, 2003
2,001
4
215
::1
...

'Hackers' cannot do anything with you forwarding the MIR server ports.

Set a fixed IP for your server machine, and forward the aforementioned ports to it. Without doing this, you cannot host a MIR server.

/Leo