Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Calling Computer's IP Address

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Calling Computer's IP Address
 Login/Join
 
Silver Member
posted
Does anyone know of a way to get the IP address of the computer that is calling a WebFOCUS report?

Thanks,
Josh


WebFOCUS 8.0.09
Windows, DB2 iSeries, ODBC
Output: Excel, HTML, PDF, AHTML
 
Posts: 37 | Registered: October 26, 2007Report This Post
Platinum Member
posted Hide Post
Hi Josh,
The way this "should" work (It's not working in my 765 environment) is:

To use the IP Address add the following to
custom settings under configuration in the Webfocus admin console:

RADDR = &REMOTE_ADDR (pass)

Then test using the following FOCEXEC:

TABLE FILE CAR
"THIS IS THE ADDRESS: &RADDR"
PRINT CAR NOPRINT
END

This message has been edited. Last edited by: RichH,


WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
 
Posts: 173 | Registered: November 16, 2005Report This Post
Virtuoso
posted Hide Post
This will work

RADDR=&REMOTE_ADDR
<set> RADDR(pass)


or just:

<set> REMOTE_ADDR(pass)  


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Silver Member
posted Hide Post
Thank you Rich!

I did not use the same command, but it gave me ideas. I used:

REMOTE_ADDR (pass)

This did what I expected it to do, but did not give me the results I want. Let me explain. I am developing some reports for a 'customer portal' that is using Microsoft SharePoint. I would like to get the IP of the SharePoint server if possible. I am wanting to only run the reports if the request is going through this server. I know this sounds crazy, but this is what the boss wants.

Thanks,
Josh


WebFOCUS 8.0.09
Windows, DB2 iSeries, ODBC
Output: Excel, HTML, PDF, AHTML
 
Posts: 37 | Registered: October 26, 2007Report This Post
Expert
posted Hide Post
You may be able to determine the IP or server address via the "referrer" property of a URL. Take a look here or Google "html referrer":

http://www.netmechanic.com/news/vol4/javascript_no14.htm


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Try
<set> HTTP_REFERER (pass)


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
This works as I expected it to.

When running a WebFOCUS request from the Microsoft CRM server, the DM variable looks like this:
&HTTP_REFERER = http://nbnotocrm1.nesbittburns.ca/sfa/conts/edit.aspx?i...ts/edit.aspx?id={87E

When running a WebFOCUS request from the WebFOCUS server, the DM variable looks like this:
&HTTP_REFERER = http://gfnotoeiprod/ibi_apps/WFServlet?IBIF_ex=crmsimu3...x=crmsimu3&DECD=

Now I can verify the origin of the request by doing something like this:
-SET &ECHO=ALL;

-IF NOT (&HTTP_REFERER LIKE '%nbnotocrm1.nesbittburns.ca%' OR &HTTP_REFERER LIKE '%gfnotoeiprod%') GOTO NO_ACCESS;

...

-EXIT


-NO_ACCESS 
-TYPE YOU DO NOT HAVE ACCESS TO THE WEBFOCUS SERVER


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Calling Computer's IP Address

Copyright © 1996-2020 Information Builders