|
-
Jan 9th, 2006, 06:12 AM
#1
Thread Starter
Addicted Member
Aghhh Please help with winsock and Port Forwarding
Hello All.
Ok i have browed the web and looked at a ton of tutorials. I should have this correct but it is still not working.
Im trying to access a computer remotly useing winsock that is within a LAN
My program works fine if both PC's are within the LAN, but not with 1 from outside the LAN.
I 'THINK' i have set up my router correctly. to allow port forwadring. I think my code should be sound.
Rather than for you to work otu whats wrong from my code, could one of you please give a breife description on how you would go about setting up a remote access though a router useing winsock.
I dont need a bunch of code just the steps regarinf the setting up of the router, what ports you would use and which parts ofthe router you would setup. and the IP part of the Winsock code IE this part for connection...
Code:
Public Sub Winsock_Connect()
On Error GoTo ErrorHandler
mdiMain.winsocks.Close
mdiMain.winsocks.RemoteHost = "192.168.0.4" ' this is the internal Ip of the server
mdiMain.winsocks.RemotePort = 15151
mdiMain.winsocks.Connect
end sub
and this part, the other maching were it detects a new connection..
Code:
Private Sub WinsockArray1_NewConnection(ByVal lngIndex As Long, blnCancel As Boolean)
Hopefully then i can see where i am going wrong.
Thanks for your time.
-
Jan 17th, 2006, 09:10 PM
#2
Fanatic Member
Re: Aghhh Please help with winsock and Port Forwarding
I don't know any code for Port Forwarding. But you must open a port in your router's settings. Open up the port 15151 because that's the one you are using. If it has Public or Private Port Start or end make them all the same as 15151 or what ever port you are using. Also make sure that you type your computer's LAN (Not internet) IP into it. Don't use the IP 127.0.0.1 either.
-
Jan 18th, 2006, 03:27 AM
#3
New Member
Re: Aghhh Please help with winsock and Port Forwarding
I think u should configure the router to forward the packets where destination port is 15151 to 192.168.0.4 .
-
Feb 27th, 2006, 08:02 AM
#4
Lively Member
Re: Aghhh Please help with winsock and Port Forwarding
How to configure router? Can you please explain by steps? I have created a LAN client with my LAN address. Then i create a port fowarding using the specific port(8080 in my case). But still i can access to my web page. May I know how?
-
Feb 27th, 2006, 08:04 AM
#5
Lively Member
Re: Aghhh Please help with winsock and Port Forwarding
Do i need to configure the static routing???? Please help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|