Using SCP to transfer files from Windows to Mac [closed] - unix

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to write a script that, executing from a mac, will download 4 files from a windows machine to my current directory. I tried downloading those files using scp, but whenever I try connecting to the host, I receive a "Operation timed out - lost connection" message. After doing some research, I found out that I need an ssh daemon tool on the windows machine in order to complete the connection. I installed FreeSSHd and tried using scp again, but with no success. I also tried turning off my windows firewall, but it didn't work either.
Does anyone know why I am getting the timeouts? What would be steps I needed to follow to be able to use scp from a unix machine (mac) connecting to a windows machine?
P.S.: Would it be possible that I am not using the correct IP address to connect to the host? I ask because I also tried "ping XXX.XXX.XXX.XXX" on the mac and I received a timeout message
Thanks in advance!

From you P.S. it is pretty clear that your issue lies deeper. Since you can't even ping the Windows machine from the MAC host (and assuming ICMP packets aren't being filtered), I recommend checking the network and connectivity of your hosts (if there is a network admin, he could be of great help), especially:
that both computers are connected to an internal network or to the internet;
that there are no other firewalls in the network;
the window's host IP (ipconfig in the command line in the windows host);

Related

VM (Parallels) not using the VPN connection on the host (osx mavericks) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am running Tunnelblick from my Mac.
My local network is 192.168.0.0/32 and the network I am trying to connect is 192.168.252.0/22.
Also, I am using a VM (Parallels) running Windows 8.1.
I want to connect to a VPN from my Mac and share this network with my VM.
So, I am facing some problems to do that. Here they go:
When I'm connected to the VPN, my ip address does not change to the ip address from the VPN network. My ip is still 192.168.0.132.
Despite the problem with the ip address, from the host I still can 'ping' the hosts from the network I am trying to connect writing 'ping host.domain.com'. But 'ping host' does not work.
I've already set the network to ‘shared’ in the device menu from Parallels. But, even with this, my ip address from the VM is 10.211.55.4.
In my VM I can't even ping the hosts from the other network
I'm sorry if I wasn't clear enough. All this problem is a little complex to describe.
Something important: The same configuration file I am using works perfectly (without the IP and the DNS problems) when I am using a Windows machine.
Change the VM's network adapter type to "Shared" within Parallels Desktop.
Configure virtual machine
Change network source to shared network
if that still does not work, disable ipv6 in guest machine.

Whatismyip and ifconfig giving different IP addresses [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am looking to get the IP of my dev server. Everything online says to either do ifconfig or to curl something like whatismyip. These are giving me 2 different addresses. Why?
To add: I have no idea if it's behind a router or anything. I simply have an IP that I SSH into. I assumed that address was the address of the server - but when I curl http://ifconfig.me/ I get a completely different address.
Disclaimer: I have close to 0 networking knowledge.
You are most likely behind a router that does network address translation. Your ifconfig could be showing an IP address from a private range, such as 192.168.xxx.xxx.
An alternative is that your development server has several network interfaces, in which case ifconfig should be showing you several (such as eth0, eth1). However, I have the feeling it's the first, because you didn't mention this.
You could possibly check for the former with a tool such as tracepath, thereby discovering the nodes in between your development server and the other servers. But it might just be easier to check with the IT administrator(s) for your development server.
Well if you're behind a router that could be one reason.
If your dev server is externally facing it's entirely possible that the DNS server that whatismyip is using has a different IP entry than the DNS server ifconfig.me is using.
try running tracert www.yahoo.com from the command line and see what IPs shows up in the results.

How to access web server through an ad-hoc connection? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
If I were to connect my iphone to my apache server through an ad hoc connection, how would I access my apache server? What would the URL be for me to access my server? My guess would be that localhost should do it however, I am not aware of networking protocols and how they work.
I did that kind of thing with an iPad:
Like Gunnar Hoffman said:
1) Get your computer's ip, get the port number on which your apache runs
2) Browse http://ip:port with your iOS device (where you substitute ip with the ip of your computer and port with the port on which apache runs the server)
If you use the built-in webserver (on Mac OS X; which is configurable through the system preferences) you are presented the url of the server (also in the system preferences).
I personally used this "technique" to transfer files to an iPad via WiFi.
Your best bet would most likely be to:
1) connect both devices to a single wireless network/router
2) determine your computer's ip address via ifconfig, or ipconfig (for windows)
3) then type http://your_ip_address:your_servers_port/ in your mobile browser
for example http://192.168.1.1:8888/
Also this is not considered Ad-Hoc, but this is a simple, easy to setup, and portable solution.

Server on virtual machine setup? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I just started to learn about networking and decided to run my own node.js server
The problem is i have almost no idea what im doing :(
I installed a virtual ubuntu 64 server, installed nodejs and all the prereqs.
I downloaded a sample (https://github.com/ry/node_chat) and dont know if its working or not.
i run node on the server file and get "server running at 127.0.0.1:1337"
How do i see it on my host (physical) machine?
Thanks!!
ps i have no domain, virtual is running on NAT network and my physical is behind a router
In your virtual machine (ubuntu 64bit) start the terminal and run
ifconfig
This should give you the ip address assigned to your virtual machine (192.168.x.x) something like that. On your host open up a browser and type in http://192.168.x.x: in your case will be 1337.
I would recommend you configure your VM to always have that ip static and setup the hosts files on your host machine to point to the ip address, making it easier to get to the server.

Virtualbox host-guest network setup [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
How do I set up a network between the Host and the guest OS in Windows vista?
Give the guest two network adapters, one NAT and the other Host-only. The NAT one will allow the guest to see the Internet, and the Host-only one will allow the host to see the guest.
One of them also allows the guest to see the host. I'm not sure which, but I know it works since I've tested web server stuff with it. You just have to choose the right IP address, 10.x.x.x or 192.168.x.x.
Also, you may have to be careful about having File and Printer Sharing running on both adapters at once, since the guest will see its own name and conflict with itself. I ran into this during install.
I've got a better answer than my first one.
Give the guest a single Host-only network adapter, and enable Internet Connection Sharing (ICS) on the host. I've tried this on a Windows XP host with a Windows XP guest.
The guest can connect to the Internet.
The guest can connect to the host at an address like 192.168.0.1 (chosen by ICS). -- Remember to allow the guest through the host's firewall.
The host can connect to the guest at an address like 192.168.0.22 (assigned by the DHCP service provided by ICS).
You can do this on a Linux host. I've documented the steps I took in Ubuntu 9.04 here.
I don't run vista, but virtualbox should do most of the setup for you - all you need to do is assign an IP address, subnet mask, and (optionally) a default gateway to your guest OS, and it should just work.
Don't bother with any of the advanced network settings in the options for the VM - they're useful in some situations, but I've never had to use them, and I've been using virtualbox for some years now.
If you post the specific problem you're having perhaps I can help more. But your question is rather vague...

Resources