For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2006 > How to connect two program using internet behind proxy or adsl mod









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to connect two program using internet behind proxy or adsl mod
Birol inci

2006-04-26, 6:56 pm

How can I connect two program. If The computer running programs has unique
internet IP (like 212.233.83.23) , it is simple using winsock. But if the
computer connects internet using a four port adsl modem the Ip of that
computer is like 192.168.1.2 or 10.0.0.2 and the Ip of modem is
212.233.83.23. When I try to connect 212.233.83.23 using winsock, the adsl
modem answers not the computer. is it possible to connect the computer behind
Adsl modem using port number. like 212.233.83.23:39943
JP Bless

2006-04-26, 6:56 pm

look at port/IP forwarding... you will need to forward the local IP address
(192.168.1.2 or 10.0.0.2) of the computer to the adsl modem. Then you will
be able to access the computer externally. Check your adsl modem's IP
forwarding most likely in the "advanced" menu

If your computer is set to obtain IP dynamically from modem then know your
computer IP address may change when ever you reboot the modem or the
computer... will be better to assign a static local IP within the range your
modem DHCP server assigns... if 192.168.1.xxx then I would assign something
like 192.168.1.222 to my computer and then forward that IP to modem. In that
case the modem's DHCP should be set to not assign 192.168.1.222 to any other
device...

Have a look at (for example)
http://www.dslwebserver.com/main/fr...forwarding.html


"Birol inci" <Birol inci@discussions.microsoft.com> wrote in message
news:9209C85C-4241-418F-ACB8-7B45282A9D1A@microsoft.com...
> How can I connect two program. If The computer running programs has unique
> internet IP (like 212.233.83.23) , it is simple using winsock. But if the
> computer connects internet using a four port adsl modem the Ip of that
> computer is like 192.168.1.2 or 10.0.0.2 and the Ip of modem is
> 212.233.83.23. When I try to connect 212.233.83.23 using winsock, the adsl
> modem answers not the computer. is it possible to connect the computer

behind
> Adsl modem using port number. like 212.233.83.23:39943



JP Bless

2006-04-26, 6:56 pm

http://www.ox.compsoc.net/~steve/portforwarding.html
http://www.homenethelp.com/web/expl...warding-dmz.asp

"JP Bless" <jp3BlessNoSpam@hotmail.com> wrote in message
news:ulFQiUYaGHA.4424@TK2MSFTNGP02.phx.gbl...
> look at port/IP forwarding... you will need to forward the local IP

address
> (192.168.1.2 or 10.0.0.2) of the computer to the adsl modem. Then you will
> be able to access the computer externally. Check your adsl modem's IP
> forwarding most likely in the "advanced" menu
>
> If your computer is set to obtain IP dynamically from modem then know your
> computer IP address may change when ever you reboot the modem or the
> computer... will be better to assign a static local IP within the range

your
> modem DHCP server assigns... if 192.168.1.xxx then I would assign

something
> like 192.168.1.222 to my computer and then forward that IP to modem. In

that
> case the modem's DHCP should be set to not assign 192.168.1.222 to any

other
> device...
>
> Have a look at (for example)
>

http://www.dslwebserver.com/main/fr...forwarding.html
>
>
> "Birol inci" <Birol inci@discussions.microsoft.com> wrote in message
> news:9209C85C-4241-418F-ACB8-7B45282A9D1A@microsoft.com...
unique[color=darkred]
the[color=darkred]
adsl[color=darkred]
> behind
>
>



Stefan Berglund

2006-04-26, 6:56 pm

On Wed, 26 Apr 2006 15:29:01 -0700, Birol inci <Birol
inci@discussions.microsoft.com> wrote:
in <9209C85C-4241-418F-ACB8-7B45282A9D1A@microsoft.com>

>How can I connect two program. If The computer running programs has unique
>internet IP (like 212.233.83.23) , it is simple using winsock. But if the
>computer connects internet using a four port adsl modem the Ip of that
>computer is like 192.168.1.2 or 10.0.0.2 and the Ip of modem is
>212.233.83.23. When I try to connect 212.233.83.23 using winsock, the adsl
>modem answers not the computer. is it possible to connect the computer behind
>Adsl modem using port number. like 212.233.83.23:39943


NO! Heh heh heh. ~This~ is why we have firewalls. You've got to be
kidding!

You'll have to have ~your~ program behind the firewall initiate the
conversation and then you can do anything you want via HTTP.

---
This posting is provided "AS IS" with no warranties and no guarantees either express or implied.

Stefan Berglund
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com