English 中文(简体)
route a custom url to a web-application
原标题:

I have a Vista Home PC with computer-name say office_pc1 and with IP say 192.168.11.40. I have a web-application, in that pc, which can be successfully accessed via the IP itself.

Now, my question is how can I access that web-application if I m entering the url as: http://support.somedomain.com/, in my local intranet. Is that possible without using any Server OS? Can I implement, it by adding some entires in the etc/hosts file in the System32 folder of that machine.

(The web-application is a third-party application. so i cannot touch the source-code)

Is this a dreamy question? Thanks.

最佳回答

If you want to fake it then you can add a entry to your hosts file yes. Add

192.168.11.40    support.somedomain.com    

then run, at an elevated command prompt, ipconfig /flushdns

Now try pinging that FQDN and you should see it resolve to your 192 address and away you go

问题回答

thanks for the help. I actually solved the problem is an alternate way. As you know, adding a host entry in every pc is not an ideal solution. By taking the risk, I added the entry into my proxy machines hosts file. And Chanrmingly, its working.

Hope this helps. Thanks.





相关问题
C# Networking API s [closed]

Lately I ve been looking for a good networking API i could possibly use and/or reference some of the code within, but i have mere luck searching for some on Google/Bing. Hopefully somebody here has ...

Listen to a port that is in use [duplicate]

Possible Duplicate: Get connecting IP from specified ports that using by other program. If a port is used by a program, is there any way I can listen that port and get the connected IP on that ...

Twisted Spread suitable for multiplayer racing sim?

Do you think that Twisted Spread may be suitable (in terms of performance) for a multiplayer racing simulator? The rest of the application is based on Python-Ogre. Can Perspective Broker run upon (...

Optimizing a LAN server for a game

I m the network programmer on a school game project. We want to have up to 16 players at once on a LAN. I am using the Server-Client model and am creating a new thread per client that joins. ...

multicast ip address - blocked in call to recvfrom

i am writing a simple multicast application. i intend to run it on localhost. i have done the following: char *maddr; . . . sendfd = socket(...); struct sockaddr_in sasend; sasend.sin_family = ...

Java HTTPAUTH

我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。

热门标签