Solved A computer with multiple IP addresses

June 3, 2011 at 22:20:09
Specs: Windows 7, intel i7, 8 GB
Hi,

I have a Windows 7 Pro 64-bit machine. When I run ipconfig on it, I can see list of multiple IP addresses, one of them is from my gateway modem which is this.

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : gateway.2wire.net
Link-local IPv6 Address . . . . . : fe80::9d60:35ae:89e5:b8a9%15
IPv4 Address. . . . . . . . . . . : 192.168.1.73
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254

When I run Oracle forms server on my machine, the server binds its server socket on this IP address 192.168.1.73. Here is the output of netstat.

TCP 192.168.1.73:49240 tequila:0 LISTENING

The problem is the client is trying to connect to 127.0.0.1 port 49240 and it is not able to connect. If I try to manually run cmd and run telnet 192.168.1.73 49240, I am able to connect to the forms server socket.

If I run the same forms server in Windows XP, it binds itself to the name of the machine.
TCP vodka:6203 vodka:0 LISTENING
This is good because the client is able to connect. I have a Windows hosts entry that maps vodka back to 127.0.0.1.

But in Windows 7, what should I do to solve this issue? My thought are as follows.
1. Is there a setting in Windows 7 so that any server socket will listen to the hostname instead of IP address?

2. Or is there a setup or program in Windows 7 to make any connection to IP address 192.168.1.73 routed to 127.0.0.1.

Your help is very much appreciated!

Thanks,
RH


See More: A computer with multiple IP addresses

Report •

✔ Best Answer
June 5, 2011 at 00:02:59
Just follow my suggestion with tequila instead of vodka. Do not put an entry for 127.0.0.1 referring to anything other than "localhost".


#1
June 4, 2011 at 01:21:19
I'm not clear what entries you have in your host file on the Windows 7 machine. At the minimum I would suggest:

127.0.0.1 localhost
192.168.1.73 vodka

I would advise against mapping "vodka" to "127.0.0.1".


Report •

#2
June 4, 2011 at 10:46:42
Hi ijack,

No, vodka is my Windows XP machine which has no issue. The problem is in the Windows 7 (tequila)

Here is my hosts file in tequila.
127.0.0.1 localhost
127.0.0.1 tequila
127.0.0.1 tequila.local.com

Thanks.


Report •

#3
June 4, 2011 at 11:56:32
You are confusing the loopback address with what should be the hosts public or private ip. Use one of the latter.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

Related Solutions

#4
June 5, 2011 at 00:02:59
✔ Best Answer
Just follow my suggestion with tequila instead of vodka. Do not put an entry for 127.0.0.1 referring to anything other than "localhost".

Report •

#5
June 6, 2011 at 05:39:21
Thank you very much ijack. That works!

Report •

Ask Question