/    Sign up×
Community /Pin to ProfileBookmark

IP Address script problems – HELP!!

I want to use this IP Address script but it dosent work on my server.
This is the script:
[url]http://javascript.internet.com/user-details/ip-address.html[/url]

And this is the error. [url]http://cctv.3a-ns.com[/url]

please help me with this problem.
Thanks Nasos.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@xataku_nakusuteAug 17.2003 — well, in the instructions for the IP script, it mentions that you "may need to rename the page with the .shtml extension because the script uses SSI..."

so, you should see if your server provides for support of SSI(server-side includes) or not
Copy linkTweet thisAlerts:
@nasosauthorAug 17.2003 — Itried that too and I get a diferent error.

http://cctv.3a-ns.com/ip_test.html

can you figure it out? I noticed one think though that the :

var ip = '<!--#echo var="REMOTE_ADDR"-->';

is getting evaluated from the server now.
Copy linkTweet thisAlerts:
@nasosauthorAug 17.2003 — Thanks for the help.

Problem fixed. I had to remove the coments.

http://cctv.3a-ns.com/ip_test.html

thanks for all your help on my first project.

Now the second part: how can I from the same page having now the ip get the host name?
Copy linkTweet thisAlerts:
@Khalid_AliAug 17.2003 — Thats not a javascript question.You were better of posting your question in the general /AP or PHP forums...

however answer to your question does vary in most of the languages.the syntax prety much is different in all langauges except C# and java since C# is a bad copy of Java)....?
×

Success!

Help @nasos spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...