You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

maXim

Trainee

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

Posts: 53

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 - 649 times downloaded - latest: Apr 9th 2024, 12:04am)

This post has been edited 2 times, last edit by "maXim" (Apr 3rd 2020, 1:21pm)


maXim

Trainee

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

Posts: 53

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