Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a program developed in vb6 which include client app & server app.Both uses Winsock control to communicate.
Client app connects to server app by providing client name & server address.
Then the server displays a list box which shows client ip address & the name.
What I require is to port forward the client request to another server.
Example:
Client's IP is 0.0.0.0
My IP is 1.1.1.1
Program's IP is 2.2.2.2

Normal Program Connection between Client and Program is Client will connect to program normally, and program read client's IP as 0.0.0.0

With this Server, when Client (0.0.0.0) connect to My IP (1.1.1.1), My IP (Server app), will accept the connection from Client, and connect client to Program IP (2.2.2.2). So when Program read client IP, it will read as 1.1.1.1.
How do I accomplish this in vb6?Sample code will be appreciated & to get me started.Please help.
Posted
Comments
CHill60 18-Jan-14 13:08pm    
OriginalGriff gave you some pointers on what to research on your earlier post - have you tried?
Member 10245054 18-Jan-14 23:51pm    
yes I tried but not succeeded.Everything is going well,however I only need to port forward or forward the client request from my server app to another server..please suggest something

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900