SQLExpress - Xb2.NET     ot4xb  
xb2net
How to access local web server running in a network from outside network?
Thread Starter: Nestor Guido Started: 6/4/2008 5:48 PM UTC
Replies: 11
How to access local web server running in a network from outside network?
Hi All,

I have written a local web server based on the example given by Boris. It works fine when I try it from a computer on the same network using the local IP address where the local web server is running example http://10.0.0.9:80....  But when i get the ip address as known from the internet outside world example 41.242.56.208 I find that all of my computer on the network all have the same ip address which is logical. How do I test as though I am coming in from outside of my network ? I know it has something to do with the router setting and possibly port forwarding ...But I can not get it right. Can someone help me please?

Kind regards
Nestor
Re: How to access local web server running in a network from outside network?
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in
news:44cb7c08$1d1c6a8e$a719@news.xbwin.com:  

I have written a local web server based on the example given by Boris.
It works fine when I try it from a computer on the same network using
the local IP address where the local web server is running example http://10.0.0.9:80....  But when i get the ip address as known from
the internet outside world example 41.242.56.208 I find that all of my
computer on the network all have the same ip address which is logical.
How do I test as though I am coming in from outside of my network ? I
know it has something to do with the router setting and possibly port
forwarding ...But I can not get it right. Can someone help me please?

you need to configure the firewall on your external router to forward port 80 to the IP address where the Xb2.NET webserver is running. Example on my router I have the following setting:

service name: HTTP
start port: 80
end port: 80
server IP address: 192.168.1.5

My webserver is running on a computer with the internal IP address 192.168.1.5 (this address needs to be static).
Hope that helps,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
Hi Boris,
I've set my port forwarding parameters in my router to
Rule name: HTTP1 (I have even tried HTTP)
start port 80
end port 80
My computer that has webserver running IP: 10.0.0.9
--------------------------------------------------------
And for example the external LAN IP address is 41.242.40.20
-----------------------------------------------------------------
Then is the SOAPEXEC.EXE program I type the following for my promps:
Server name or IP address: http://41.242.40.20:80
---------------------------------------------------------------------------
Then I get:
Result......: Fault
Return data:
{{"faultcode", "env:Server", ""}, {"faultstring", "Server: invalid response", ""}}
----------------------------------------------------------------------------------
I have also turned off my windows firewall for this test.

Kind Regards
Nestor

"Boris Borzic" <support-at-xb2-dot-net> wrote in message news:Xns9AB3B30FBAAE3SQLExpress@68.178.173.112...
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in
news:44cb7c08$1d1c6a8e$a719@news.xbwin.com:

> I have written a local web server based on the example given by Boris.
> It works fine when I try it from a computer on the same network using
> the local IP address where the local web server is running example
> http://10.0.0.9:80....  But when i get the ip address as known from
> the internet outside world example 41.242.56.208 I find that all of my
> computer on the network all have the same ip address which is logical.
> How do I test as though I am coming in from outside of my network ? I
> know it has something to do with the router setting and possibly port
> forwarding ...But I can not get it right. Can someone help me please?

you need to configure the firewall on your external router to forward port
80 to the IP address where the Xb2.NET webserver is running. Example on my
router I have the following setting:

service name: HTTP
start port: 80
end port: 80
server IP address: 192.168.1.5

My webserver is running on a computer with the internal IP address
192.168.1.5 (this address needs to be static).

Hope that helps,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in news:44e80f98
$2a2dadb4$a71b@news.xbwin.com:

I've set my port forwarding parameters in my router to
Rule name: HTTP1 (I have even tried HTTP)
start port 80
end port 80
My computer that has webserver running IP: 10.0.0.9
--------------------------------------------------------
And for example the external LAN IP address is 41.242.40.20
-----------------------------------------------------------------
Then is the SOAPEXEC.EXE program I type the following for my promps:
Server name or IP address: http://41.242.40.20:80

some additional suggestions:

1. Try connecting using your browser using the following:
  http://41.242.40.20
  http://10.0.0.9

2. Try defining your server (10.0.0.9) as a DMZ server in the router.

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
Hi Boris,
1. Try connecting using your browser using the following:
 http://41.242.40.20
does not work
works fine and even works with: http://10.0.0.9:80... does not work with http://10.0.0.9:90 (which is expected)

2. Try defining your server (10.0.0.9) as a DMZ server in the router.
Have tried that and still same problem (note have restarted router as well)

Kind Regards,
Nestor

"Boris Borzic" <support-at-xb2-dot-net> wrote in message news:Xns9AB4627B8C30FSQLExpress@68.178.173.112...
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in news:44e80f98
$2a2dadb4$a71b@news.xbwin.com:

> I've set my port forwarding parameters in my router to
> Rule name: HTTP1 (I have even tried HTTP)
> start port 80
> end port 80
> My computer that has webserver running IP: 10.0.0.9
> --------------------------------------------------------
> And for example the external LAN IP address is 41.242.40.20
> -----------------------------------------------------------------
> Then is the SOAPEXEC.EXE program I type the following for my promps:
> Server name or IP address: http://41.242.40.20:80

some additional suggestions:

1. Try connecting using your browser using the following:
 http://41.242.40.20
 http://10.0.0.9

2. Try defining your server (10.0.0.9) as a DMZ server in the router.

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
Nestor Guido schrieb:
Hi All,
I have written a local web server based on the example given by Boris. It works fine when I try it from a computer on the same network using the local IP address where the local web server is running example http://10.0.0.9:80....  But when i get the ip address as known from the internet outside world example 41.242.56.208 I find that all of my computer on the network all have the same ip address which is logical. How do I test as though I am coming in from outside of my network ? I know it has something to do with the router setting and possibly port forwarding ...But I can not get it right. Can someone help me please?
Kind regards
Nestor  


Hi,

I have done this here. You have to tell the firewalls (ROUTER + Desktop ...) that request to port 80 (or what you are using in your Server) have to been redirect to the client and you have to know which IP adress ist aktual assigned to your NETWORK (router). I use dyndns (http://www.dyndns.com/) for that. Does your internal adress is every time the same ? Maybe you can use a fixed one in your router. Your computer should get its IP by DHCP, because of the right DNS settings.
So on Win2000 without desktop firewall you have to:

1. Router redirect port 80 onto your pc
2. the pc have to have the same internal IP than you declared into the router.
3. Your router should tell his outside adress to dyndns - my router can do this.

4. If you have WinXP you have to set a firewall roule to let the port 80 request through. Vista maybe needs a little bit more ?

Bye
Hubert
Re: How to access local web server running in a network from outside network?
Hi Guys,
I am really trying to solve this problem and am getting desperate. I have
tried resting my router settings to factory defaults and then setting up
the basics just to get onto the internet.  I have even switched off the
firewall settings of the router as well as for Windows XP for testing
purposes. Note that we are permently connected to the internet.. Have also
defined (10.0.0.9) as a DMZ server in the router.
I have allowed for the exceptions of port 80 and port 443 in the Windows
firewall. I have the latests service packs and patches on my Windows XP
professional.
Now I am trying the basic from xb2net demo soap software with the options
that do not require the webserver...following is what I get:
1) Get Exchange Rate Between Two Currencies (!)
    Fault
  Returned data:
{{"faultcode", "env:Client", ""}, {"faultstring", "Cient: no connection",
""},
 {"detail", xbComplexType, ""}}
2) Execute WHOIS query for a domain name    (!)
  Microsoft.com
  Fault
  Returned data:
{{"faultcode", "SOAP-ENV:Server", ""}, {"faultstring", "Error opening SRL
file.", ""},
    {"faultactor", "/xml/SQLDataSoap.WSDL",""}, {detail", xbComplextype,
""}}
3) Use BabelFish to traslate text between languages (!)
 Fault
{{"faultcode", "env:Client", ""}, {"faultstring", "Cient: no connection",
""},
 {"detail", xbComplexType, ""}}

Note that I am connected to an ADSL internet line and we are able to
navigate the internet with no problem. Is it a possible fault that is
related to my service provider or could the fault be with the router itself?

If someone has TEAMVIEWER I can invite them into my computer to have a look.

Kind regards
Nestor

----- Original Message ----- From: "Boris Borzic" <support-at-xb2-dot-net>
Newsgroups: xb2net
Sent: Thursday, June 05, 2008 3:39 PM
Subject: Re: How to access local web server running in a network from
outside network?


"Nestor Guido" <nestor@softwareclinic.co.za> wrote in news:44e80f98
$2a2dadb4$a71b@news.xbwin.com:

> I've set my port forwarding parameters in my router to
> Rule name: HTTP1 (I have even tried HTTP)
> start port 80
> end port 80
> My computer that has webserver running IP: 10.0.0.9
> --------------------------------------------------------
> And for example the external LAN IP address is 41.242.40.20
> -----------------------------------------------------------------
> Then is the SOAPEXEC.EXE program I type the following for my promps:
> Server name or IP address: http://41.242.40.20:80

some additional suggestions:

1. Try connecting using your browser using the following:
 http://41.242.40.20
 http://10.0.0.9

2. Try defining your server (10.0.0.9) as a DMZ server in the router.

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools

"Boris Borzic" <support-at-xb2-dot-net> wrote in message news:Xns9AB4627B8C30FSQLExpress@68.178.173.112...
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in news:44e80f98
$2a2dadb4$a71b@news.xbwin.com:

> I've set my port forwarding parameters in my router to
> Rule name: HTTP1 (I have even tried HTTP)
> start port 80
> end port 80
> My computer that has webserver running IP: 10.0.0.9
> --------------------------------------------------------
> And for example the external LAN IP address is 41.242.40.20
> -----------------------------------------------------------------
> Then is the SOAPEXEC.EXE program I type the following for my promps:
> Server name or IP address: http://41.242.40.20:80

some additional suggestions:

1. Try connecting using your browser using the following:
 http://41.242.40.20
 http://10.0.0.9

2. Try defining your server (10.0.0.9) as a DMZ server in the router.

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in
news:67e414a0$6e980e75$a723@news.xbwin.com:  

Note that I am connected to an ADSL internet line and we are able to
navigate the internet with no problem. Is it a possible fault that is
related to my service provider or could the fault be with the router
itself?  

The SOAP services you are trying to connect to are no longer available. Please download the latest version of Xb2.NET. I have deleted the SOAP services that are no longer available and added several new ones.  

-- Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
Hi Boris,
Downloaded demo of newer xb2net system and that worked fine to communicate
with new external soap servers. I will try and incorperate them in my older
version just to test. but I still cannot get my external ip address to do a
communication to your newer version webserver....for example get the current
date and time from the local web server.

Kind Regards,
Nestor

"Boris Borzic" <support-at-xb2-dot-net> wrote in message news:Xns9AB56F2BA8602SQLExpress@68.178.173.112...
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in
news:67e414a0$6e980e75$a723@news.xbwin.com:

> Note that I am connected to an ADSL internet line and we are able to
> navigate the internet with no problem. Is it a possible fault that is
> related to my service provider or could the fault be with the router
> itself?

The SOAP services you are trying to connect to are no longer available.
Please download the latest version of Xb2.NET. I have deleted the SOAP
services that are no longer available and added several new ones.

-- Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in
news:18f76b7$5cf4abd9$c49a@news.xbwin.com:  

Downloaded demo of newer xb2net system and that worked fine to
communicate with new external soap servers. I will try and incorperate
them in my older version just to test. but I still cannot get my
external ip address to do a communication to your newer version
webserver  

Unfortunately, you will need to figure out this piece. As a test, what I would do is bypass the router completely and plug the server directly into the external IP connection.

-- Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
Hi Boris,

I went to another network and communicated with my home networks local web server(xb2net) and it worked fine and fast. But within my own network I cannot address my webserver with its external ip address. If I use the internal ip address then it works. But then that I can live with...I will be testing it from another external computer tomorow and I will let you all know of my results....In any event I appreciate all of the help in trying to resolve this problem...you are a good guy....and thanks....

Kind Regards,
Nestor
"Boris Borzic" <support-at-xb2-dot-net> wrote in message news:Xns9AB586E754A6CSQLExpress@68.178.173.112...
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in
news:18f76b7$5cf4abd9$c49a@news.xbwin.com:

> Downloaded demo of newer xb2net system and that worked fine to
> communicate with new external soap servers. I will try and incorperate
> them in my older version just to test. but I still cannot get my
> external ip address to do a communication to your newer version
> webserver

Unfortunately, you will need to figure out this piece. As a test, what I
would do is bypass the router completely and plug the server directly into
the external IP connection.

-- Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Re: How to access local web server running in a network from outside network?
"Nestor Guido" <nestor@softwareclinic.co.za> wrote in
news:7cd101dd$5e1d16d7$c49f@news.xbwin.com:  

I went to another network and communicated with my home networks local
web server(xb2net) and it worked fine and fast. But within my own
network I cannot address my webserver with its external ip address. If
I use the internal ip address then it works. But then that I can live
with...I will be testing it from another external computer tomorow and
I will let you all know of my results....In any event I appreciate all
of the help in trying to resolve this problem...you are a good
guy....and thanks....  

Happy to help & thanks for the feedback. It's good to hear you got it to work.

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools