You are not logged in.

maXim

Trainee

  • "maXim" is male
  • "maXim" started this thread

Posts: 51

Date of registration: Jan 5th 2009

Location: Sesto Fiorentino, Florence (ITALY)

Occupation: design & development (HW, SW & FW)

Hobbies: chess, fly fishing, good wine and beautiful women!

  • Send private message

1

Saturday, January 24th 2009, 7:16pm

db2000 gpIPa [g]et [p]ublic [I]nternet [P]rotocol [a]ddress

db2000 gpIPa

[g]et [p]ublic [I]nternet [P]rotocol [a]ddress

A simple way to detect the public IP, this is a solution already seen in other environments but is the first time with Jabaco! ;)

maXim has attached the following file:
  • db2000 gpIPa.zip (72.59 kB - 395 times downloaded - latest: Jul 4th 2019, 5:29am)

This post has been edited 1 times, last edit by "maXim" (Jan 24th 2009, 7:25pm)


maXim

Trainee

  • "maXim" is male
  • "maXim" started this thread

Posts: 51

Date of registration: Jan 5th 2009

Location: Sesto Fiorentino, Florence (ITALY)

Occupation: design & development (HW, SW & FW)

Hobbies: chess, fly fishing, good wine and beautiful women!

  • Send private message

2

Sunday, January 25th 2009, 2:43pm

Who has a website could manage the db2000 gpIPa requests through a webpage (.SHTML) like the following:

Source code

1
2
3
4
5
6
7
8
9
10
<html> 
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 
        <title>GET YOUR IP (shtml)</title> 
    </head> 
    <body> 
        Your Public IP:&nbsp; 
        <!--#echo var="REMOTE_ADDR"--> 
    </body> 
</html>


Even with IIS just one line of code (VBScript) in an ASP page is enough to resolve the IP address:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<html> 
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 
        <title>GET YOUR IP (asp)</title> 
    </head> 
    <body> 
        Your Public IP:&nbsp; 
        <% 
            Response.Write Request.ServerVariables("REMOTE_ADDR") 
        %> 
    </body> 
</html>

maXim has attached the following file:

This post has been edited 5 times, last edit by "maXim" (Jan 25th 2009, 3:03pm)


Rate this thread
WoltLab Burning Board