473,804 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webware / localhost vs. real IP address

Hi all,

I'm not sure whether this is Webware or Python-related, but I have to
start somewhere.

I have a small Webware server running on port 8086, with Webware's http
server listening to port 8080 (all standard). The IP address of my
machine is 192.168.1.2, and it's running WinXP.

If I point my Opera to 127.0.0.1:8080, all works well. If I do the same
with 192.168.1.2:808 0, which should be the same, it says 'could not
connect to remote server'.

A short Python http client will work with the first address, and says
the follwing when pointed to the second:
Traceback (most recent call last):
File
"C:\Programs\Py thon23\lib\site-packages\Python win\pywin\frame work\scriptutil s.py",
line 310, in RunScript
exec codeObject in __main__.__dict __
File "C:\prj\dynip\m yselfhttp.py", line 11, in ?
router.request( 'GET','/')
File "C:\Programs\Py thon23\Lib\http lib.py", line 718, in request
self._send_requ est(method, url, body, headers)
File "C:\Programs\Py thon23\Lib\http lib.py", line 739, in _send_request
self.endheaders ()
File "C:\Programs\Py thon23\Lib\http lib.py", line 712, in endheaders
self._send_outp ut()
File "C:\Programs\Py thon23\Lib\http lib.py", line 597, in _send_output
self.send(msg)
File "C:\Programs\Py thon23\Lib\http lib.py", line 564, in send
self.connect()
File "C:\Programs\Py thon23\Lib\http lib.py", line 548, in connect
raise socket.error, msg
error: (10061, 'Connection refused')

The local firewall has been disabled.

The routes seem to be OK as well:
C:\Documents and Settings\pu>rou te print
=============== =============== =============== =============== ===============
Interface List
0x1 ............... ............ MS TCP Loopback interface
0x2 ...00 80 ad 0b 16 22 ...... CNet PRO200 PCI Fast Ethernet Adapter -
Packet Scheduler Miniport
=============== =============== =============== =============== ===============
=============== =============== =============== =============== ===============
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.2
30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
192.168.1.0 255.255.255.0 192.168.1.2 192.168.1.2
30
192.168.1.2 255.255.255.255 127.0.0.1 127.0.0.1
30
192.168.1.255 255.255.255.255 192.168.1.2 192.168.1.2
30
224.0.0.0 240.0.0.0 192.168.1.2 192.168.1.2
30
255.255.255.255 255.255.255.255 192.168.1.2 192.168.1.2
1
Default Gateway: 192.168.1.1
=============== =============== =============== =============== ===============
Persistent Routes:
None

Any clues?

Regards,
-PU
--
http://www.homepages.lu/pu/
Jul 18 '05 #1
2 3104
Hi,
If I point my Opera to 127.0.0.1:8080, all works well. If I do the same
with 192.168.1.2:808 0, which should be the same, it says 'could not
connect to remote server'.
Any clues?


Yes - sockets that are connected to '' listen to all local addresses, while
localhost listens only to 127.0.0.1 - this is somewhat misleading described
in the socket module. So I guess you should configure webware in a way that
its listening on '', not on localhost.

--
Regards,

Diez B. Roggisch
Jul 18 '05 #2
On Sun, 15 Feb 2004 19:04:50 +0100, "Diez B. Roggisch"
<de************ @web.de> wrote:
Yes - sockets that are connected to '' listen to all local addresses, while
localhost listens only to 127.0.0.1 - this is somewhat misleading described
in the socket module. So I guess you should configure webware in a way that
its listening on '', not on localhost.


I was mislead by the fact that 127.0.0.1 == 192.168.1.2 in my case.
While this is logically true, the addresses are obviously still
considered physically different
Thank you.

-PU
--
http://www.homepages.lu/pu/
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1448
by: Geoffrey Talvola | last post by:
Webware 0.8.1 has been released. It includes an important security fix. All users are encouraged to upgrade. Webware provides a suite of Python components for developing Web applications. It includes an App Server, Servlets, Python Server Pages, Object-Relational mapping, Task Scheduling, Session management, and many other features. Webware is very modular, and easily extended. Check out the Webware for Python home for...
1
1852
by: JZ | last post by:
I use Webware and FormKit. I have a problem with dynamic added field to the form. The following code creates one input field and two submit buttons. I would like to add more (up to 4) input fields after pressing "more" button. It does not work and I have no idea how to solve it. import re from WebKit.Page import Page from FormKit import Form, Fields, Validators from FormKit.FormKitMixIn import FormKitMixIn
0
984
by: Christoph Zwerschke | last post by:
Webware 0.9 has been released. Webware for Python is a suite of Python packages and tools for developing object-oriented, web-based applications. The suite uses well known design patterns and includes a fast Application Server, Servlets, Python Server Pages (PSP), Object-Relational Mapping, Task Scheduling, Session Management, and many other features. Webware is very modular and easily extended. Webware for Python is well proven and...
6
3641
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
12
3872
by: John Kotuby | last post by:
Hi all, Maybe this is a simple problem found in ASP.NET 2.0 course 101, but I must have missed it. When I create a page in Visual Web Developer and use URLs like "/images/picture.gif " or a link like <a href="../../Search/page.aspx">, everything works fine as long as I publish the site to a root web like http://localhost. However, I am developing on my local C drive in c:\development\project. I
6
7983
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as "include not found", rather much of the page is blank where the included menus, etc would be, and the CSS is not attached. thanks so much!!! My httpd.conf looks like this:
7
9848
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to achieve this. Thanks
11
3321
by: AAaron123 | last post by:
I have an vs2008 app that generates a website. I have a vs2008 app that uses the webbrowser and does this: WebBrowser1.Navigate(New Uri(address)) the address is: http://localhost:1226/Mr.%20Louis%20Jones/
5
2064
by: Timothy Grant | last post by:
On Tue, Aug 5, 2008 at 2:50 PM, David York <davideyork@gmail.comwrote: I'm not sure what you are trying to accomplish. The machine I'm typing this on has a 192.168.x.x number. The router that gave it to me also has a 192.168.x.x number. However, I know that that is not the IP that the world sees when my packets finally leave the building. What if your machine has multiple interface cards in it? What are you trying to accomplish?
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10603
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.