Click here to Skip to main content
15,886,545 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi

I hosted my application in server with some IP address.EX:http://52.41.234.24/applcation/login.aspx
Here I want to hide my ip address to users(52.41.234.24) i.e I want to show my url like
EX:http://xyz/applcation/login.aspx.

Can any one help how to hide this ip.
I developed my application in asp.net with C#.


Thanks in advance

What I have tried:

Hi


I hosted my application in server with some IP address.EX:http://52.41.234.24/applcation/login.aspx
Here I want to hide my ip address to users(52.41.234.24) i.e I want to show my url like
EX:http://xyz/applcation/login.aspx.

Can any one help how to hide this ip.
I developed my application in asp.net with C#.


Thanks in advance
Posted
Updated 9-Jun-16 6:25am
v2

You can not hide IP adresses because that are "the" adresses. Even when using domain names, that will be resolved to IP adresses using DNS.

Compare with telephone numbers: They must be known to call. If you don't know a specific number, you can't call the recipient. Your phone book is like DNS: It provides the number for a specific name.

An example:
If you enter "http://www.codeproject.com" into the address field of your web browser, the browser will query DNS servers to get the correspoding IP and uses that to connect to the server.

You can also enter "http://76.74.234.210" into the address field instead.

To get the IP number for a known server, you can use the command line tool nslookup (with Linux use dig instead):
nslookup www.codeproject.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   www.codeproject.com
Address: 76.74.234.210


So everybody can get your IP address when you publish your domain name.
 
Share this answer
 
Comments
Member 11986705 9-Jun-16 6:59am    
Thank you Jochen arndt,

Why I am searching for this is because of my IP is open it is attacking by users frequently.For the same my server frequently effcting with virus.
F-ES Sitecore 9-Jun-16 7:21am    
The answer is to implement decent security so that attackers can't access your server. Any public site is constantly under attack, you can't stop that I'm afraid, it is one of the pitfalls of putting your site on the internet.
Jochen Arndt 9-Jun-16 7:22am    
This is a common problem that can't be completely avoided. The attacks are usually not by your users but by scanning complete IP ranges.

If you have a hosted service it may help to change the provider. IPs ranges from providers known for outdated and badly serviced services are attacked more than others.

If your server is frequently infected it is vulnerable and misses required service (using recent OS and application versions with up-to-date patch levels).

If updating is your responsibility, do it. Otherwise change the hoster.
You can't hide the ip address in a url, simply because the client typed it, so it is useless.
But you can hide the fact that the URL with domain name is redirected to an ip address.

When you own a domain name (www.xyz), you have DNS setting where you have to tell where the domain name leads
In the DNS settings, you have a line that do the translation for each subdomain
SubDomain: www.xyz
Line Type: A
Destination: 52.41.234.24
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900