Iframe shows system on localhost - PHP

Asked

Viewed 125 times

0

Good morning

I’ll try to explain my situation and see if there’s a solution.

I have a server that runs a java web application that I want to run only on localhost.

Yet, on this server, I have a PHP system that is free for internet access, and that accesses this java application (localhost) and returns the result. Why you are using another web system, and java is also web, are for specific reasons.

So here’s the problem:

I want to access the PHP system, and within it have an iframe (example) that allows me to have access to the java system that works only localhost. I could tell?

I thought of something with Curl or file_get_contend, but maybe you have another form or library that helps.

Thank you in advance

Thank you

  • Let’s go in parts. What do you mean by access? You can use an iframe, I understand. It is not necessary to involve the back so far...

  • Good evening. I want the iframe to show the java system page so I can touch it. But as I will access from a network outside the localhost that the servers are, it will not work with simple iframe. Type, I am in my home with ip 201.198.099.x and the PHP server is with ip 201.182,123.x. When accessing the PHP server, you will have an iframe that will show the java web server, which is localhost as PHP server, for me to change the java server settings.

  • It is not possible to do this. It is necessary that you use a fixed IP or NoIP to gain access to your computer through a server.

  • Man, I’m sorry but you’re still confused for me. But to summarize, here’s the thing. If you go in your browser and can access a page, whatever it is, you can play it in an iframe. If not, then there is no way. You will need to review your architecture and your demand until

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.