string ipaddress = Context.Request.ServerVariables["REMOTE_ADDR"]
insert into tablename (ipaddress)values('"+ipaddress+"');
Leave a comment: