PDA

Click to See Complete Forum and Search --> : Port Forwarding


jackeng1983
Aug 29th, 2008, 04:33 AM
Hi,

Is possible to do the port forwarding in vb?

For example: A connection from a client in 64.92.162.82, port 80 will transparently be forwarded to the 10.26.122.27, port 80, that is a host of a private lan that does not have an interface to the internet (which makes sense in many topologies). Obviously 193.1.2.3 should also have an interface on the Private Network to be able to contact and forward.

Thanks
Jack

Genovah
Aug 29th, 2008, 06:33 PM
Before I answer the question what version of VB are you using? Secondly, just to verify the first machine is on 64.92.162.82 and the second machine is on 10.26.122.27 yes? If so you are going to run into problems, I can explain more in detail once you respond... Also, I want to know is are the on the same network? If not, are you using a VPN? If not, are they under the same router? Can you ping the machine you are trying to forward to? For the most part if you can ping it this is possible.

This is just my opinion take it for what its worth. The idea you have presented here isn't a very good plan. Why not just open port forwarding to the private LAN on just that port? Or, do these computers not connect to the internet period? I think you need some more information before anyone can give you a way of doing this.

jackeng1983
Sep 1st, 2008, 03:00 AM
Version = visual basic 6.0

NO, is not the same network.
For example: 64.92.162.82 is a external network(WAN IP) and 192.168.0.333 is (LAN IP), port 80 is a remote port and also is a local port. I need to develop the system that port forwarding features to do the mapping of 64.92.162.82:80 to the 192.168.0.333:80.
Ya, can ping the 64.92.162.82:80 and 192.168.0.333:80.
We didn't have the router in our network, we're just developed the gateway server.( I want exactly like D-link router "virtual server" features)