Give access to other device in the network - networking

I am trying to build a website using Open Journal Systems (OJS).
XAMMP and OJS are already installed in the PC. Now I need other people (decision makers) to see it in the front end using their device (another PC, mobile phone). How can I configure this? Thank you.

You use the tools:ngrok
https://ngrok.com/
You can proxy your localhost on the console by: ./ngrok http 80
then you will get a external domain your user can access it.

Related

How to access my localhost website from my phone?

Good day to all,
I am trying to create my website locally, and perhaps access the website through my phone from the localhost. Forgive me I am just a beginner.
So I used ipconfig -all to find my IPV4 address and it was e.g
192.168.1.102
And on the ASP.net webapplication I ran, the address was:
https://localhost:44337
Hence, I was trying to access this Web Application of mine created on my PC, to be accessed on my phone. On my phone, I entered the address:
192.168.1.102:44337
I went into my firewall setting to add a new rule for inbound connection to allow all ports to be connected as well. But it still don't work. Both my PC and phone is connected to the same wifi.
Does anyone know the fix? Thank you in advance.
You might have to configure an IIS server. This tool comes default in Windows (professional?), and there's lots of good resources on how to do this, all of which do a better job of explaining the process than I could do.
Essentially, you will need to:
Publish your site (Done through visual studio or cli)
Enable and configure your IIS
Create a new website in the IIS manager and point it towards the output of your web app publish
After opening the neccessary firewall ports, check to see in which IP address your web application is running. I am assuming you are using some sort of HTTP webserver software like IIS(windows) or Apache(Linux). In IIS to do that you must go to your site bindings and where it says "IP Address", select "All Unassigned" (NOT localhost or 127.0.0.1)so that the web application runs in all network adapters and IP addresses.
See full IIS documentation here: https://learn.microsoft.com/en-us/iis/get-started/getting-started-with-iis/getting-started-with-the-iis-manager-in-iis-7-and-iis-8
Follow the guide: https://medium.com/#manujsdeveloper/debug-a-website-local-or-remote-hosted-on-an-android-mobile-device-ff2c43527be1
You will need to set your phone in developer mode and get the OEM USB driver specific for your phone. and get a ADB running on your computer
I suggest supplement your knowledge with with links below, as some things are left out in the above guide and vice versa:
https://developer.android.com/studio/command-line/adb
https://developers.google.com/web/tools/chrome-devtools/remote-debugging

Permission/Multiple access to Alfresco Explorer?/Share?

I'm newbie to Alfresco.
I've been installed it for a week and have been trying to use it. But I still confusing with it too. - -"
I've some questions for Alfresco.
- Is the Alfresco provide many user from many computer access to Alfresco Explorer at the same time? (I can access it from my pc but cannot access to Alfresco Explorer/Share from my co-worker pc)
Is the Alfresco need to configure for host permission that can access to it? (I'm log out and close my browser then try to use my co-worker pc to access it but it cannot access to Alfresco Explorer/Share.)
when request from my co-worker pc, I founded this :
ERROR
The requested URL could not be retrieved
..
..
Connection to failed.
You need not to configure anything explicitly for that. Only thing normally require is mapping machine ip with hostname but that is not mendatory.
Once you install alfresco on one machine and that machine is connected with other machines through intranet then you should be easily able to access that through the machine IP on which it is installed.
http://<machineIP>:<port>/alfresco
http://<machineIP>:<port>/share
Check weather you are able to ping your machine ip address from your coworekers machine or not if that works then you should be able to access it. through above urls.
Open command prompt at machine from which you want to reach Alfresco app on your local machine and type in
telnet <your_local_machine_IP> <app_server_port>
for example
telnet mitpatoliyaPC 8080
Until you are able to see black screen with blinker in upper left corner you don't need to think of Alfresco or any problems related to it.

How to install WordPress locally to be viewed externally via static ip

i wanna install a WordPress locally on xampp , to be viewed and edited externally through the internet via static ip , i have been trying it but keep running into problems , can someone help me through a number of steps that i can accomplish that , without having any problems in the future , there is bits and pieces everywhere but no specific set of instructions , on how to do that , please can someone help.
Thank you so much.
(This first step is the easy part, just software and small interaction.)
Install Wordpress with xampp or another, this PC will need to be on as a normal server in order to access local or by Internet -> http://es.wikihow.com/instalar-Wordpress-en-XAMPP
(Hardware part)
After tested localhost/wp (or any name you like) you need to forward the port 80 of the pc with has WP to the router that has visible IP (I'm sharing some samples with most known brands):
portforward.com/english/routers/port_forwarding/AirLive/WL-1500R/Zmodo_M6304.htm
www.noip.com/support/knowledgebase/tp-link-router-port-forwarding/
www.howtogeek.com/66214/how-to-forward-ports-on-your-router/ (THIS HAS GOOD IMAGES TO UNDERSTAND BETTER)
You won't be able to access router config by Internet because the router will redirect you to the WP "server". To check the public IP just go to: http://www.whatismyip.com/
Share the IP with a friend or connect with 3G/4G on phone, put it on browser and your server will be ready to use on Internet.
5 (optional) you can install dynamic DNS to fix a name to your local server, because usually the Internet provider changes the IP numbers, and if you use it some day you won't be able to connect because your router would be using another IP (example: www.noip.com/ )
I hope you find this info useful. Regards

How to view webpage on my server from another computer?

I have a web application I have developed on a server on my home computer. Is it possible to access that web page from another computer on my home network?
My naive approach was just enter my ip address followed by the port number :8888 which the server is listening on...
Any help would be great thank you.
I don't know if it will help but you can use an ssh connection to your computer. But you need to do it from a shell (from terminal on a mac, use putty on a PC)
In the end it was easier to set up remote access to the server by setting up port-forwarding on my router and using no-ip for DNS management. They have a decent walkthrough to get it all up and running. So i simply have to type in my-address.no-ip.org to access my site from any remote device.
Otherwise the links to questions on superuser that Sampo posted are worth a try.

R httpd issue - help pages fail to load using local IP

This may be a general topic, but I came across the issue while working on some code using the Rook package.
The recent R versions include an http server. You may have seen this while checking for help topics using RGui. It opens a new browser with the IP/Port, etc.
For eg., if I enter ?paste, this brings up,
http://127.0.0.1:31234/library/.../paste.html
But if I use my IP, say 192.168.1.2 in place of 127.0.0.1, the page fails to load, I get an error
While trying to retrieve the URL:http://192....
The following error was encountered:
We can not connect to the server you have requested
I have other apps that have httpd interfaces, and I can go to those app's http interfaces using both 127.0.0.1 and 192.168.1.2 ... etc. So, as far as system/network permissions are concerned - I do not think that is the issue here.
Rather, there is something specific to the R httpd process that disallows it to be accessed using the domain name, etc ?
The above was tested in a corporate network. When I tried the same process from my home network it worked fine. However, since I already access http interfaces of many other locally installed apps from the corporate PC, I think there might be something specific to R's http process that needs to be checked ?
Workstation is running - Windows XP
Please let me know if you have any thoughts on the above,
Regards,
Raj.
Fixed it. The trick is to specify,
s <- Rhttpd$new()
s$start(listen="0.0.0.0",port="20000")
when starting the Rook process. Specifying 0.0.0.0 makes it listen to all the interfaces and now I can access it using my external IP. Thanks a lot for your help nonetheless !
When opening a TCP port, the local IP address may be chosen. For incoming connections, typically INADDR_ANY (-1) is supplied to bind(), which means to open the port on every available interface.
However, it is quite possible to open a port on just one interface on your machine (in this case, 127.0.0.1), simply by supplying the IP address of the interface. Seems that R does just this.
My guess is that you may have a proxy in place on your corporate network. Your browser is probably configured to use that proxy to access the Internet. Most browsers will exclude an address which they know to be local (127.0.0.1 or localhost) from using the proxy, but might not exclude any other IP.
Try disabling the proxy in your browser (even "Auto-Detect", completely turn the proxy off) and see if you're able to connect.
I had the same problem.
If you are using RStudio, this might be a bug in the RStudio. Check out this link:
https://support.rstudio.com/hc/communities/public/questions/202656007-Cryptic-error-on-starting-RStudio-daily-with-R-devel
Updating to the latest version of RStudio with the latest version of R fixes the problem.

Resources