Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I include the this coding

HTML
<body>
<script language="JavaScript">
   VIH_BackColor = "palegreen";
   VIH_ForeColor = "navy";
   VIH_DisplayFormat = "You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%";
   VIH_DisplayOnPage = "yes";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>
</body>

For Showing public ipaddress of the system....

But i don't know how to insert the ip address to my database(db)

Please Some one help me......

Posted

1 solution

IP Address is just a string. You need to have a VARCHAR column of minimum (20 length) and insert the same into it. IPv4 address. Not sure about the length for IPV6 though.
 
Share this answer
 
Comments
sathish4303 1-Apr-13 2:07am    
how to show the ip address on my asp:Label

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